Hello coders,
I have this small javascript code that works fine in chrome/firefox but won't disable the 'select' menu in IE...any suggestion? Thank you in advance.
I have this small javascript code that works fine in chrome/firefox but won't disable the 'select' menu in IE...any suggestion? Thank you in advance.
Code:
<label>
Gender<br>
<select name="gender" id="gender" onclick="if (this.checked) document.getElementById('org').disabled=true; else document.getElementById('org').disabled = false;" />
<option selected>Male</option>
<option>Female</option>
</select></label>
<br><br><label>
<input type="checkbox" id="org" name="org" onclick="if (this.checked) document.getElementById('gender').disabled=true; else document.getElementById('gender').disabled = false;" /></label>
This account is for an oganization / company.<br><br>