Re: value property of the HTMLSelectElement

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 UTC