public interface DOMSelectElement extends DOMFormControlElement
Modifier and Type | Method and Description |
---|---|
java.util.List<DOMOptionElement> |
getOptions()
Returns the collection of
返回此select元素包含的OPTION元素的集合。 OPTION elements contained by this select element.
|
boolean |
isMultiple()
Indicates whether type of the select element is 'select-multiple'.
指示选择元素的类型是否为“ select-multiple”。 |
void |
setMultiple(boolean multiple)
Updates select element type.
更新选择元素类型。 |
getForm, getValue, isEnabled, setValue
getAttribute, getAttributes, getBoundingClientRect, getInnerHTML, getInnerText, hasAttribute, removeAttribute, scrollToBottom, scrollToTop, setAttribute, setInnerHTML, setInnerText
appendChild, click, compareDocumentPosition, getChildren, getNextSibling, getNodeName, getNodeType, getNodeValue, getParent, getParentFrameId, getPreviousSibling, getTextContent, getXPath, insertChild, removeChild, replaceChild, setNodeValue, setTextContent
addEventListener, dispatchEvent, getEventListeners, removeEventListener
evaluate, evaluate, findElement, findElements
java.util.List<DOMOptionElement> getOptions()
OPTION
elements contained by this select element.
OPTION
elements contained by this select element.
此select元素包含的元素的集合。
boolean isMultiple()
true
if type is 'select-multiple',
false
if 'select-one'.
如果类型为“ select-multiple”,则为“ select-one”。
void setMultiple(boolean multiple)
multiple
-
true
for 'select-multiple' type,
false
for 'select-one'.
-对于“单选”类型,对于“单选”。