OptionElement Interface
DOM option elements elements share all of the properties and methods of other HTML elements described in the element section. They also have the specialized interface HTMLOptionElement (or HTML 4 HTMLOptionElement).
No methods are defined on this interface.
Extends
Constructors
Code new OptionElement([String data, String value, bool defaultSelected, bool selected]) #
OptionElement([String data, String value, bool defaultSelected, bool selected]);
Fields
Code bool disabled #
disabled
HTML attribute, which indicates that the option is unavailable to be selected. An option can also be disabled if it is a child of an <optgroup>
element that is disabled.
bool disabled;
Code final FormElement form #
Code final int index #
final int index;
Code String value #
value
HTML attribute, if it exists; otherwise reflects value of the textContent
IDL attribute.
String value;
This page includes content from the Mozilla Foundation that is graciously licensed under a Creative Commons: Attribution-Sharealike license. Mozilla has no other association with Dart or dartlang.org. We encourage you to improve the web by contributing to The Mozilla Developer Network.