You are here: irt.org | FAQ | JavaScript | Form | Q1517 [ previous next ]
The most compatible (only Internet Explorer can hide and show form elements easily) is the following:
<form> <select name="mySel" onChange="if (this.disabled) this.selectedIndex=0"> . . . </select> <input type="radio" name="r1" onClick="this.form.mySel.disabled=true">disable <input type="radio" name="r1" onClick="this.form.mySel.disabled=false">enable </form>