Enabled Checkboxes Act Disabled
Moderator: General Moderators
Enabled Checkboxes Act Disabled
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
post your code
Re: Enabled Checkboxes Act Disabled
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!!!