Page 1 of 1

Enabled Checkboxes Act Disabled

Posted: Sat Feb 26, 2011 4:50 pm
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?

Re: Enabled Checkboxes Act Disabled

Posted: Sat Feb 26, 2011 6:03 pm
by Weirdan
post your code

Re: Enabled Checkboxes Act Disabled

Posted: Sat Feb 26, 2011 7:37 pm
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!!!