javascript OPTION value

valueNN 4 IE 4 DOM 1  

Read/Write  

Provides the value associated with the option element. If the option element has a value attribute or value property set, this is the value returned for the value property; otherwise, the property returns an empty string.

 
Example
 
var itemValue = document.forms[0].selectList.options[2]value;
 
Value

String.

 
Default

None.


1566,Nickname,Homepage or email,Comments here,Add comment