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

'selected' Syntax and Note

Note:

Read and write property. 
Is <option> element selected. 
    
Syntax:
    
document.getElementById("optionID").selected = value
document.all.optionID.selected = value // IE only

    

      
      








Related examples in the same category

1.'selected' Example
2.'selected' Possible Values
3.'selected' is applied to