'selectedIndex' Syntax and Note : selectedIndex « Javascript Properties « JavaScript Reference
- JavaScript Reference
- Javascript Properties
- selectedIndex
'selectedIndex' Syntax and Note
Note:
Read and write property.
The index of the selected <option> element.
Syntax:
document.getElementById("selectID").selectedIndex = value
document.all.selectID.selectedIndex = value // IE only
Related examples in the same category