public interface DOMOptionElement extends DOMElement
| Modifier and Type | Method and Description |
|---|---|
boolean |
isSelected()
Returns
如果选择了当前选项元素,则返回true。 true if current option element is selected.
|
void |
setSelected(boolean selected)
Updates state of the option element.
更新选项元素的状态。 |
getAttribute, getAttributes, getBoundingClientRect, getInnerHTML, getInnerText, hasAttribute, removeAttribute, scrollToBottom, scrollToTop, setAttribute, setInnerHTML, setInnerTextappendChild, click, compareDocumentPosition, getChildren, getNextSibling, getNodeName, getNodeType, getNodeValue, getParent, getParentFrameId, getPreviousSibling, getTextContent, getXPath, insertChild, removeChild, replaceChild, setNodeValue, setTextContentaddEventListener, dispatchEvent, getEventListeners, removeEventListenerevaluate, evaluate, findElement, findElementsboolean isSelected()
true if current option element is selected.
true if current option element is selected.
如果选择了当前选项元素。
void setSelected(boolean selected)
selected -
true when you want to select option element, otherwise
false.
-当您要选择选项元素时,否则。