|
Posted by John Dunlop on 07/03/06 18:14
Jonathan N. Little:
> Kimmo Laine wrote:
>
> > That's not an issue, if value is not given, then anything that's inside the
> > <option></option> will be used instead. In this case for example
> > <option>Company</option> Company will be used since it lacks value.
>
> Browser dependent, MS IE doesn't set the value by default. It really
> becomes noticeable in JavaScript if you test for someSelectElement.value
> will fail in IE if you do not explicitly set the value attributes on the
> OPTION elements...
not disputing that, but I'd point out that the spec is quite clear
when it says, as Kimmo said, that in the absence of a value attribute,
the value is set to the element's content.
--
Jock
Navigation:
[Reply to this message]
|