'selectedIndex' Syntax and Note : selectedIndex « Javascript Properties « JavaScript Reference

'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

1.'selectedIndex' Example
2.'selectedIndex' is applied to