Gets or sets the value of the selected HTML attribute.
Property of dom/HTMLOptionElementdom/HTMLOptionElement
Syntaxvar initiallySelected = option.defaultSelected;
option.defaultSelected = value;
Return Value
Returns an object of type BooleanBoolean
Whether the selected HTML attribute is present.
NotesThe property can be changed programmatically, but doing so has no effect on the appearance of the option or the submitted value - if the selected property has been changed by a user or by a script. The property does change the appearance of the selected option if the form is reset.
Related specificationsMicrosoft Developer Network: [Windows Internet Explorer API reference Article]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4