Now all I want is for the following to work:
works perfectly in any browser but IE so I am looking for alternative ideas. As the "onclick" in a "<option" doesnt appear to be supported in IE.
Code:
function enableField()
{
document.form1.bt_slot.disabled=false;
document.form1.bt_day.disabled=false;
document.form1.bt_month.disabled=false;
document.form1.bt_year.disabled=false;
}
function disableField()
{
document.form1.bt_slot.disabled=true;
document.form1.bt_day.disabled=true;
document.form1.bt_month.disabled=true;
document.form1.bt_year.disabled=true;
}
Code:
<select name="status" id="select2">
<option selected="'selected"><? echo $row['status'] ?></option>
<option disabled="true">---------</option>
<option onclick="disableField()">foo</option>
<option onclick="disableField()">bar</option>
<option onclick="disableField()">hum</option>
<option onclick="enableField()">bug</option>
<option onclick="disableField()">ie</option>
<option onclick="disableField()">turd</option>
</select>
works perfectly in any browser but IE so I am looking for alternative ideas. As the "onclick" in a "<option" doesnt appear to be supported in IE.