'defaultSelected' Syntax and Note : defaultSelected « Javascript Properties « JavaScript Reference
- JavaScript Reference
- Javascript Properties
- defaultSelected
'defaultSelected' Syntax and Note
Note:
Read and write property.
Sets the element selected state when the page is loaded.
Syntax:
document.getElementById("optionID").defaultSelected = value
document.all.optionID.defaultSelected = value // IE only
Related examples in the same category