IE6 Select Option, Sans Disabled

Internet Explorer (IE) yanks a furry cats ass. If for any reason you disagree with me, then you’re retarded. It’s that simple.

Assuming you want to disable a few select options, don’t try the following in IE6:

<select name="ie_sucks">
   <option disabled="disabled">One</option>
   <option disabled="disabled">Two</option>
   <option>Three</option>
</select>

Although the above example is valid XHTML (and therefore works in Opera, Firefox, Safari, etc), IE6 displays all three options as selectable, as if the disabled option was never set. Thankfully lattimore.id.au has come up with a nice fix.

Puke you later IE.

Update: I should also note that IE7 doesn’t accept disabled="disabled" in an option field. Sweet Christ.

Leave a Reply