Option.defaultSelected (Property)

The selected state of this item when the form was created.

Availability:

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

This is a Boolean value that indicates whether the <OPTION> tag in the HTML document source has the SELECTED HTML tag attribute present or not. Only one of the <OPTION> tags in a <SELECT> block should have the SELECTED attribute, unless multiple sections are allowed.

You can refer to this value in the form checking script to see if the value of the select block has been changed since the page was loaded.