'selected' Syntax and Note : selected « Javascript Properties « JavaScript Reference
- JavaScript Reference
- Javascript Properties
- selected
'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