public interface SelectElement extends FormControlElement
Provides access to the attributes and to the list of options of the select element.
| Modifier and Type | Method and Description |
|---|---|
boolean |
isMultiple()
Returns
true if the select element has the multiple attribute and multiple
options of the element can be selected at once. |
void |
multiple(boolean multiple)
Sets the
multiple attribute of the select element to the given multiple
value. |
java.util.List<OptionElement> |
options()
Returns an immutable list of the option elements of the select element.
|
form, isEnabled, value, valueattributes, attributeValue, blur, boundingClientRect, focus, hasAttribute, innerHtml, innerHtml, innerText, innerText, outerHtml, outerHtml, putAttribute, removeAttributeappendChild, children, click, document, evaluate, evaluate, insertChild, nextSibling, nodeName, nodeValue, nodeValue, parent, previousSibling, removeChild, replaceChild, textContent, textContent, typeaddEventListener, dispatch, eventListeners, removeEventListenerfindElementByClassName, findElementByCssSelector, findElementById, findElementByName, findElementByTagName, findElementsByClassName, findElementsByCssSelector, findElementsById, findElementsByName, findElementsByTagNamejava.util.List<OptionElement> options()
java.lang.IllegalStateException - when the document this instance belongs to is closedboolean isMultiple()
true if the select element has the multiple attribute and multiple
options of the element can be selected at once.java.lang.IllegalStateException - when the document this instance belongs to is closedvoid multiple(boolean multiple)
multiple attribute of the select element to the given multiple
value.multiple - true to indicate that multiple options can be selected at once. If it
is false, then only one option can be selected at a time.java.lang.IllegalStateException - when the document this instance belongs to is closed