See also the Document Object Model (DOM) Level 2 Specification.
| Modifier and Type | Method and Description |
|---|---|
| public void | add(HTMLElement
The element to add. element, HTMLElement The element to insert before, or before)null for
the tail of the list.Add a new element to the collection of |
| public void | |
| public void | |
| public boolean | |
| public HTMLFormElement | |
| public int | |
| public boolean | |
| public String | |
| public HTMLCollection | |
| public int | |
| public int | |
| public int | |
| public String | |
| public String | |
| public void | remove(int
The index of the item to remove, starting from 0. index)Remove an element from the collection of |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| add | back to summary |
|---|---|
| public void add(HTMLElement element, HTMLElement before) throws DOMException Add a new element to the collection of
| |
| blur | back to summary |
|---|---|
| public void blur() Removes keyboard focus from this element. | |
| focus | back to summary |
|---|---|
| public void focus() Gives keyboard focus to this element. | |
| 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 | |
| getLength | back to summary |
|---|---|
| public int getLength() The number of options in this | |
| getMultiple | back to summary |
|---|---|
| public boolean getMultiple() If true, multiple | |
| getName | back to summary |
|---|---|
| public String getName() Form control or object name when submitted with a form. See the name attribute definition in HTML 4.0. | |
| getOptions | back to summary |
|---|---|
| public HTMLCollection getOptions() The collection of | |
| getSelectedIndex | back to summary |
|---|---|
| public int getSelectedIndex() The ordinal index of the selected option, starting from 0. The value -1 is returned if no element is selected. If multiple options are selected, the index of the first selected option is returned. | |
| getSize | back to summary |
|---|---|
| public int getSize() Number of visible rows. See the size attribute definition in HTML 4.0. | |
| getTabIndex | back to summary |
|---|---|
| public int getTabIndex() Index that represents the element's position in the tabbing order. See the tabindex attribute definition in HTML 4.0. | |
| getType | back to summary |
|---|---|
| public String getType() The type of this form control. This is the string "select-multiple"
when the multiple attribute is | |
| getValue | back to summary |
|---|---|
| public String getValue() The current form control value. | |
| remove | back to summary |
|---|---|
| public void remove(int index) Remove an element from the collection of
| |
| setDisabled | back to summary |
|---|---|
| public void setDisabled(boolean disabled) | |
| setMultiple | back to summary |
|---|---|
| public void setMultiple(boolean multiple) | |
| setName | back to summary |
|---|---|
| public void setName(String name) | |
| setSelectedIndex | back to summary |
|---|---|
| public void setSelectedIndex(int selectedIndex) | |
| setSize | back to summary |
|---|---|
| public void setSize(int size) | |
| setTabIndex | back to summary |
|---|---|
| public void setTabIndex(int tabIndex) | |
| setValue | back to summary |
|---|---|
| public void setValue(String value) | |