See also the Document Object Model (DOM) Level 2 Specification.
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public boolean | |
| public HTMLFormElement | |
| public int | |
| public String | |
| public boolean | getSelected()
Represents the current state of the corresponding form control, in an interactive user agent. |
| public String | |
| public String | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| getDefaultSelected | back to summary |
|---|---|
| public boolean getDefaultSelected() Represents the value of the HTML selected attribute. The value of this
attribute does not change if the state of the corresponding form
control, in an interactive user agent, changes. Changing
| |
| getDisabled | back to summary |
|---|---|
| public boolean getDisabled() The control is unavailable in this context. See the disabled attribute definition in HTML 4.0. | |
| getForm | back to summary |
|---|---|
| public HTMLFormElement getForm() Returns the | |
| getIndex | back to summary |
|---|---|
| public int getIndex() The index of this | |
| getLabel | back to summary |
|---|---|
| public String getLabel() Option label for use in hierarchical menus. See the label attribute definition in HTML 4.0. | |
| getSelected | back to summary |
|---|---|
| public boolean getSelected() Represents the current state of the corresponding form control, in an interactive user agent. Changing this attribute changes the state of the form control, but does not change the value of the HTML selected attribute of the element. | |
| getText | back to summary |
|---|---|
| public String getText() The text contained within the option element. | |
| getValue | back to summary |
|---|---|
| public String getValue() The current form control value. See the value attribute definition in HTML 4.0. | |
| setDefaultSelected | back to summary |
|---|---|
| public void setDefaultSelected(boolean defaultSelected) | |
| setDisabled | back to summary |
|---|---|
| public void setDisabled(boolean disabled) | |
| setLabel | back to summary |
|---|---|
| public void setLabel(String label) | |
| setSelected | back to summary |
|---|---|
| public void setSelected(boolean selected) | |
| setValue | back to summary |
|---|---|
| public void setValue(String value) | |