Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Stewart Cambridge London, UK
October 12, 2004, 3:47 pm
rate this thread
I've been experimenting with the disabled attribute in the <optgroup>
and <option> tags.
Seems to work in NN but not IE.
Yet this link shows Microsoft advertising that the disabled attribute
is supported by them.
Does anyone know the final word on this?
- Jukka K. Korpela
October 12, 2004, 11:50 pm
> I've been experimenting with the disabled attribute in the <optgroup>
> and <option> tags.
> Seems to work in NN but not IE.
> Yet this link shows Microsoft advertising that the disabled attribute
> is supported by them.
Microsoft's documentation on IE has some manifest errors.
IE does not implement the disabled attribute for <option> or <optgroup>
as defined in the HTML specification. It recognizes it though and
includes it into the DOM, so you can use it in a client-side script*).
And you could use CSS to make a disabled option look different from
This is inconvenient but not a serious limitation, since the attribute
itself is virtually useless without client-side scripting.
*) I guess the best way is to do that in an onchange attribute for the
<select> element. You could check whether the chosen option is a disabled
one and discard the change if it is.
Yucca, http://www.cs.tut.fi/~jkorpela /
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html
- » CSS help--what would a stylesheet for this page look like?
- — Next thread in » HTML Authoring Forum