public interface HTMLSelectElement extends ScriptArray<HTMLOptionElement>
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE| Modifier and Type | Method and Description |
|---|---|
void |
add(HTMLOptGroupElement group) |
void |
add(HTMLOptGroupElement group,
HTMLElement before) |
void |
add(HTMLOptGroupElement group,
int before) |
void |
add(HTMLOptionElement option) |
void |
add(HTMLOptionElement option,
HTMLElement before) |
void |
add(HTMLOptionElement option,
int before) |
boolean |
checkValidity() |
void |
delete(int index)
Deletes the element at this index.
|
HTMLOptionElement |
get(int index)
If there is an element at this index, return it.
|
boolean |
getAutofocus() |
boolean |
getDisabled() |
HTMLFormElement |
getForm() |
HTMLCollection<HTMLLabelElement> |
getLabels() |
int |
getLength()
What is the length of the instantiated array?
That is, at what indexes can we expect there to be
elements?
|
boolean |
getMultiple() |
HTMLOptionsCollection |
getOptions() |
boolean |
getRequired() |
int |
getSelectedIndex() |
HTMLCollection<HTMLOptionElement> |
getSelectedOptions() |
int |
getSize() |
String |
getType() |
String |
getValidationMessage() |
ValidityState |
getValidity() |
String |
getValue() |
boolean |
getWillValidate() |
boolean |
has(int index) |
HTMLOptionElement |
item(int index)
Returns the item with index index from the list of options.
|
HTMLOptionElement |
namedItem(String name) |
void |
remove()
Removes the element from its parent.
|
void |
remove(int index)
Removes an option.
|
void |
set(int index,
HTMLOptionElement option)
Inserts an option element, either replacing an existing one or
extending the list of options.
|
void |
setAutofocus(boolean auto) |
void |
setCustomValidity(String error) |
void |
setDisabled(boolean b) |
void |
setLength(int length) |
void |
setMultiple(boolean b) |
void |
setRequired(boolean b) |
void |
setSelectedIndex(int index) |
void |
setSize(int size) |
void |
setValue(String string) |
blur, click, focus, getAccessKey, getAccessKeyLabel, getChildElements, getContentEditable, getDataset, getHidden, getName, getOwnerDocument, getSpellcheck, getStyle, getTabIndex, getTranslate, isContentEditable, prepend, setAccessKey, setContentEditable, setHidden, setName, setSpellcheck, setStyle, setTabIndex, setTranslategetClassName, getId, setClassName, setIdgetAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNSappendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserDataboolean getAutofocus()
void setAutofocus(boolean auto)
boolean getDisabled()
void setDisabled(boolean b)
boolean getMultiple()
void setMultiple(boolean b)
boolean getRequired()
void setRequired(boolean b)
int getSize()
void setSize(int size)
String getType()
HTMLOptionsCollection getOptions()
int getLength()
ScriptArraygetLength in interface ScriptArray<HTMLOptionElement>void setLength(int length)
HTMLOptionElement item(int index)
index - the indexHTMLOptionElement namedItem(String name)
void add(HTMLOptionElement option)
void add(HTMLOptionElement option, HTMLElement before)
void add(HTMLOptionElement option, int before)
void add(HTMLOptGroupElement group)
void add(HTMLOptGroupElement group, HTMLElement before)
void add(HTMLOptGroupElement group, int before)
void remove()
void remove(int index)
index - the indexvoid set(int index,
HTMLOptionElement option)
set in interface ScriptArray<HTMLOptionElement>index - the indexoption - the optionboolean has(int index)
has in interface ScriptArray<HTMLOptionElement>index - the indexHTMLOptionElement get(int index)
ScriptArrayget in interface ScriptArray<HTMLOptionElement>index - the indexvoid delete(int index)
ScriptArraydelete in interface ScriptArray<HTMLOptionElement>index - the indexHTMLCollection<HTMLOptionElement> getSelectedOptions()
int getSelectedIndex()
void setSelectedIndex(int index)
String getValue()
void setValue(String string)
boolean getWillValidate()
ValidityState getValidity()
String getValidationMessage()
boolean checkValidity()
void setCustomValidity(String error)
HTMLCollection<HTMLLabelElement> getLabels()
HTMLFormElement getForm()
Copyright © 2017. All rights reserved.