July 1998
Intermediate to advanced
1456 pages
65h 5m
English
index — NN 2 IE 3 DOM n/a
Read-only
Returns the zero-based index 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. Since you usually access an OPTION
object via its place in the options array, there
is little need to reference this property.
var firstValue = document.forms[0].stateList.options[0].index
Integer.
None.
Read now
Unlock full access