Mega Code Archive

 
Categories / JavaScript Reference / Javascript Properties
 

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