tyrant1969
Programmer
I have a form that has a variety of fields and input options. I am attempting to disable certain checkboxes when an option is chosen from the drop down menu.
The core of the problem is that if the checkbox is initially formatted like this:
Such that it is an enabled field from the get-go, the javascript command of:
Does not work!
But if I turn around, setup that exact same checkbox like this so that it is disabled:
Then enable it first thing and later on disable it using javascript after the appropriate selection has been made, then all works just fine.
Why won't the box disable simply using the .disabled=true option?
Any suggestions welcomed!
The core of the problem is that if the checkbox is initially formatted like this:
Code:
<input type="checkbox" name="existing" value="existing1" id="ex1">
Such that it is an enabled field from the get-go, the javascript command of:
Code:
opener.document.getElementById('ex1').disabled = true;
Does not work!
But if I turn around, setup that exact same checkbox like this so that it is disabled:
Code:
<input [b]disabled[/b] type="checkbox" name="existing" value="existing1" id="ex1">
Then enable it first thing and later on disable it using javascript after the appropriate selection has been made, then all works just fine.
Why won't the box disable simply using the .disabled=true option?
Any suggestions welcomed!