ca************* *@hotmail.com (Stewart Cambridge London, UK) wrote:
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
selectable options.
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