NBartomeli
Programmer
I have an ASP page which uses javascript for some validation and other things. I have a routine which fills text boxes with values when they are dragged over, and when text is entered in the box, I want the checkbox that corresponds with that text box to become enabled (they are all disabled by default).
I have something like this for the checkbox
and my javascript to enable the checkbox looks like:
I know this should work, because if I ENABLE all of the checkboxes by default, and set disabled=true when the text is changed, they work fine.
When i step through in the debugger, the value shows disabled = false (AKA they should be ENABLED) but the changes are not reflected in the control on the page.
This is probably something simple, but its driving me nuts. Any help would be appreciated. Thanks in advance
I have something like this for the checkbox
Code:
<ASP:CheckBox ID="chkColL1" Enabled="False"/>
and my javascript to enable the checkbox looks like:
Code:
//elemArray[6] is the ClientID of the checkbox
document.forms[0][elemArray[6]].disabled = false;
I know this should work, because if I ENABLE all of the checkboxes by default, and set disabled=true when the text is changed, they work fine.
When i step through in the debugger, the value shows disabled = false (AKA they should be ENABLED) but the changes are not reflected in the control on the page.
This is probably something simple, but its driving me nuts. Any help would be appreciated. Thanks in advance