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

Re: value property of the HTMLSelectElement

From: Thomas Much <thomas@snailshell.de>
Date: Thu, 09 Aug 2001 20:21:53 +0200
To: David Flanagan <david@oreilly.com>
CC: <www-dom@w3.org>
Message-ID: <B798A0F1.6850%thomas@snailshell.de>
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 returns
null, but all modern browsers return the empty string in this case)

- If at least one option is selected, SELECT.value returns the value of the
*first* selected OPTION.

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

bye, Thomas
Received on Thursday, 9 August 2001 14:22:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:49 GMT