I wrote a simpe script that will disable a group of <select> form elements based on the value on another <select>. Works fine in Opera and FF, but in IE 6.x I can make the function fire once, but if I change the select option again nothing happens. Here's the function.
function disableDelay(){
if (document.connectionType.periodicUpdates.value=="No"){
document.connectionType.updateDelay.disabled=true;
} else document.connectionType.updateDelay.disabled=false;
Here's where I call the funtion.
<select name="periodicUpdates" onChange=disableDelay() >
<option <%=(synchronizationSettingBoolean) ? "selected" : ""%> >Yes</option>
<option <%=(synchronizationSettingBoolean) ? "" : "selected"%> >No</option>
</select>
Any ideas on how to make this work in IE?
function disableDelay(){
if (document.connectionType.periodicUpdates.value=="No"){
document.connectionType.updateDelay.disabled=true;
} else document.connectionType.updateDelay.disabled=false;
Here's where I call the funtion.
<select name="periodicUpdates" onChange=disableDelay() >
<option <%=(synchronizationSettingBoolean) ? "selected" : ""%> >Yes</option>
<option <%=(synchronizationSettingBoolean) ? "" : "selected"%> >No</option>
</select>
Any ideas on how to make this work in IE?