Enabled Checkboxes Act Disabled

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
gr8dane
Forum Newbie
Posts: 19
Joined: Wed Aug 22, 2007 3:12 am

Enabled Checkboxes Act Disabled

Post by gr8dane »

I have a form with a radio button and some checkboxes. The checkboxes are initially set to "disabled", but are enabled with a Javascript function when the radio button is clicked. The form reloads the page and if the checkboxes are enabled when it's submitted, they are set to "enabled" and any selected boxes are set to "checked" (using PHP). The source code shows the proper "enabled" and "checked" status and the checkmarks show correctly, but the checkboxes act disabled. Of course, clicking the radio button enables them again, so it's not a huge problem, but it's totally mystifying to me. What could be going wrong?
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: Enabled Checkboxes Act Disabled

Post by Weirdan »

post your code
gr8dane
Forum Newbie
Posts: 19
Joined: Wed Aug 22, 2007 3:12 am

Re: Enabled Checkboxes Act Disabled

Post by gr8dane »

Never mind!! I just discovered my stupid mistake. I was changing it from "disabled='disabled'" to "disabled='enabled'" when I should have been eliminating it entirely. Duhh!!!
Post Reply