HTMLFieldSetElement
åºçº¿
广æ³å¯ç¨
èª 2015å¹´7æ èµ·ï¼æ¤ç¹æ§å·²å¨ä¸»æµæµè§å¨ä¸å¾å°æ¯æï¼å¯å¨å¤§å¤æ°è®¾å¤åæµè§å¨çæ¬ä¸æ£å¸¸ä½¿ç¨ã
HTML Field Set Element
DOM fieldset elements expose the HTMLFieldSetElement (HTMLFieldSetElement) interface, which provides special properties and methods (beyond the regular element object interface they also have available to them by inheritance) for manipulating the layout and presentation of field-set elements.
屿§
屿§ç»§æ¿èªå
¶ç¶çº§ HTMLElementã
| åç§° | ç±»å | æè¿° |
|---|---|---|
disabled |
Boolean |
读å HTML 屿§ disabled,表æç¨æ·æ¯å¦å¯ä»¥æä½è¯¥æ§ä»¶ã |
elements |
readonly HTMLFormControlsCollection |
The elements belonging to this field set. |
form åªè¯» |
An HTMLFormControlsCollection or HTMLCollection referencing the containing form element, if this element is in a form. If the field set is not a descendant of a form element, then the attribute can be the ID of any form element in the same document it is related to, or the null value if none matches. |
|
name |
DOMString |
Reflects the name HTML attribute, containing the name of the field set, used for submitting the form. |
type |
readonly DOMString |
ä¸å®ä¸ºå符串fieldset. |
validationMessage |
readonly DOMString |
A localized message that describes the validation constraints that the element does not satisfy (if any). This is the empty string if the element is not a candidate for constraint validation (willValidate is false), or it satisfies its constraints. |
validity |
readonly ValidityState |
The validity states that this element is in. |
willValidate |
boolean |
Always false because fieldset objects are never candidates for constraint validation. |
æ¹æ³
| åç§° & åæ° | è¿åå¼ | æè¿° |
|---|---|---|
checkValidity() |
Boolean |
妿å
ç´ ç弿²¡ææææ§é®é¢ï¼åè¿å trueï¼å¦åè¿å false 并触å invalid äºä»¶ã |
setCustomValidity(in DOMString error) |
void |
设置ä¸ä¸ªèªå®ä¹é误ï¼å该å ç´ å°æ æ³éè¿æææ§éªè¯ãåæ°æå®çå符串就æ¯å¨åç¨æ·æ¥åéè¯¯æ¶æ¾ç¤ºçæ¶æ¯ãå¦æä¸ºç©ºå符串ï¼åæ¸ é¤è¿ä¸ªèªå®ä¹é误ã |