Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

defaultSelected property

Sets or retrieves the status of an option.

Syntax

JavaScript

p = object.defaultSelected

 

Property values

Type: Boolean

true (true)

Default. Option is selected by default.

false (false)

Option is not selected by default.

Standards information

Remarks

The property can be changed programmatically, but doing so has no effect on the appearance of the option or the submitted value. The property does change the appearance of the selected option if the form is reset.

See also

option
selected

 

 

Show:
© 2014 Microsoft