public interface DOMFormControlElement extends DOMElement
| Modifier and Type | Method and Description |
|---|---|
DOMFormElement |
getForm()
Returns the
返回包含此控件的FORM元素。 FORM element containing this control.
|
java.lang.String |
getValue()
Returns value of element.
返回元素的值。 |
boolean |
isEnabled()
Indicates whether form control is enabled or disabled.
指示是启用还是禁用表单控件。 |
void |
setValue(java.lang.String value)
Sets value for input element, textarea element and select element.
设置输入元素,textarea元素和select元素的值。 |
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 isEnabled()
true when form control is enabled.
启用表单控件时。
java.lang.String getValue()
void setValue(java.lang.String value)
setValue(value, false).
value - a string that represents a new value in the control.
-表示控件中新值的字符串。
DOMFormElement getForm()
FORM element containing this control. Returns
null if this control is not within the context of a form.