W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2001

Re: value property of the HTMLSelectElement

From: Jim Ley <jim@e-media.co.uk>
Date: Thu, 9 Aug 2001 14:42:26 -0400 (EDT)
Message-ID: <00b101c12102$85cadbc0$ca969dc3@emedia.co.uk>
Cc: <www-dom@w3.org>
> am 09.08.2001 19:16 Uhr schrieb David Flanagan unter david@oreilly.com:
> > the value attribute of a select element s is the same thing as
> > s.options[s.selectedIndex].value.
> More exactly:
> - If no option is selected, SELECT.value is the empty string (NC 4.x
> null, but all modern browsers return the empty string in this case)

All Modern Browsers? AvantGo 4 for example doesn't, and is pretty modern!

> - Setting SELECT.value has no effect in current implementations.

Not in my experience/testing, in IE5.5 and Mozilla 0.9.2 (win98) for
example, it changes the select box such that the selected option is the
first element with that value (if no element has that value, then all are
deselected and the select displays nothing in IE/the previous value in

Received on Friday, 10 August 2001 20:57:49 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:09 UTC