Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
HTML and CSS
Properties
 defaultSelected Property

  Switch on low bandwidth view
defaultSelected Property

Sets or retrieves the status of an option.

Syntax

HTMLN/A
Scripting[ bSelected = ] object.defaultSelected

Possible Values

bSelectedBoolean that specifies or receives one of the following values.
true
Default. Option is selected by default.
false
Option is not selected by default.

The property is read/write. The property has a default value of true.

DHTML expressions can be used in place of the preceding value(s). As of Internet Explorer 8, expressions are not supported in IE8 mode. For more information, see About Dynamic Properties.

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.

Standards Information

This property is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 World Wide Web link.

Applies To

OPTION, HTMLOptionElement Constructor

See Also

selected
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker