'index' Syntax and Note : index « Javascript Properties « JavaScript Reference
- JavaScript Reference
- Javascript Properties
- index
'index' Syntax and Note
Note:
Read and write property.
Specifies the index number of <option> in a <select>.
Syntax:
document.getElementById("optionID").index = value
document.all.optionID.index = value // IE only
Related examples in the same category