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

'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

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