Option.selected (Property)

The selected state of this option item.

Availability:

DOM level - 1
JavaScript - 1.0
JScript - 1.0
Internet Explorer - 3.02
Netscape - 2.0
Netscape Enterprise Server version - 2.0
Opera browser - 3.0
Property/method value type:Boolean primitive
JavaScript syntax:-myOption.selected

This is the current selected state of the option item. If the user has not interacted with the parent Select object, this value will be the same as its initial defaultSelected value. If the user has chosen an alternative item from the collection, then this property will be set accordingly.