javascript OPTION index
| index | NN 6 IE 3 DOM 1 |
| Read-only | |
|
Returns the zero-based index integer value of the current option object within the collection of options of the select element. The select object's selectedIndex property returns the index value of the option that is currently selected. |
|
| Example | |
var whichItem = document.getElementById("myOption3").index;
|
|
| Value | |
Integer. |
|
| Default | |
None. |
|
Previous: javascript OPTION label
Next: javascript OPTION form
1562,Nickname,Homepage or email,Comments here,Add comment
