greedyzebra
Technical User
On my form I have two checkboxes, one with the value "yes" the other with the value "no." When one is clicked I want to disable both checkboxes. As is normally the case, the code to achieve this works perfectly in IE but it's too much for poor Netscape. What happens is that when "yes" is clicked, both boxes are disabled. But when "no" is selected, nothing is ever disabled (again I emphasize that this is NOT the case in IE, both are disable as I wish no matter which is clicked). Now I have made it my mission to disable only the "no" checkbox in Netscape if it is the last thing I do on this earth. Even this simple code does not work:
<input type="checkbox" id="rsp1" name="rsp1" value="no" onclick=this.disabled=true">
The identical code will disable the "yes" box, but not the "no."
Incidentally, I was originally using radio buttons and had the same exact problem. I figured Netscape would not allow the disabling of all radio buttons in a group, so I switched to the checkboxes.
Any ideas are greatly appreciated.
Thanks,
Tom
<input type="checkbox" id="rsp1" name="rsp1" value="no" onclick=this.disabled=true">
The identical code will disable the "yes" box, but not the "no."
Incidentally, I was originally using radio buttons and had the same exact problem. I figured Netscape would not allow the disabling of all radio buttons in a group, so I switched to the checkboxes.
Any ideas are greatly appreciated.
Thanks,
Tom