Site Navigation

Friday, November 9, 2007

bug 293 - can't disable options in IE

Issue: #293
Affects: IE5, IE5.5, IE6, IE7, IE8, IE9 PP4
Partially Fixed in: IE8 Partner Release 1

MSIE Feedback ID: 336685

Yet another issue with select lists in IE. First you couldn't style them (bug 291) then it turns out, you can't disable them either!

Example:

<select>
<option>I am valid</option>
<option>I am valid too</option>
<option disabled="disabled">I am NOT valid</option>
<option>I am also valid</option>
</select>


Try it for yourself, load this page up in IE and any other browser.


Update: IE8 partially fixed this in that you can disable options and thus they render grayed out and can't be selected by mouse - however they can still be selected by alphabetic key presses. (e.g. in the sample above, press "i" until you see that you've selected the disabled option)


Known Workarounds: None.


Related Issues: bug 291.