The HTMLFieldSetElement interface has special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of field-set elements.
Inherits properties from its parent, HTMLElement.
HTMLFieldSetElement.disabledBoolean reflecting the disabled HTML attribute, indicating whether the user can interact with the control.HTMLFieldSetElement.elementsRead only
HTMLFieldSetElement.formRead only
HTMLFormControlsCollection or HTMLCollection referencing the containing form element, if this element is in a form.null value if none matches.HTMLFieldSetElement.nameDOMString reflecting the name HTML attribute, containing the name of the field set, used for submitting the form.HTMLFieldSetElement.typeRead only
DOMString "fieldset".HTMLFieldSetElement.validationMessageDOMString representing 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.HTMLFieldSetElement.validityValidityState representing the validity states that this element is in.HTMLFieldSetElement.willValidateBoolean false, because <fieldset> objects are never candidates for constraint validation.Inherits methods from its parent, HTMLElement.
HTMLFieldSetElement.checkValidity()true because <fieldset> objects are never candidates for constraint validation.HTMLFieldSetElement.setCustomValidity()| Specification | Status | Comment |
|---|---|---|
| HTML Living Standard The definition of 'HTMLFieldSetElement' in that specification. | Living Standard | |
| HTML 5.1 The definition of 'HTMLFieldSetElement' in that specification. | Recommendation | |
| HTML5 The definition of 'HTMLFieldSetElement' in that specification. | Recommendation | The following properties have been added: disabled, elements, name, type, valdiationMessage, validity, and willValidate.The following methods have been added: checkValidity(), setCustomValidity(). |
| Document Object Model (DOM) Level 2 HTML Specification The definition of 'HTMLFieldSetElement' in that specification. | Obsolete | No change |
| Document Object Model (DOM) Level 1 Specification The definition of 'HTMLFieldSetElement' in that specification. | Obsolete | Initial definition |
| Desktop | ||||||
|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
| Basic support | Yes | Yes | 1 | Yes | Yes | Yes |
disabled |
Yes | Yes | 1 | Yes | Yes | Yes |
elements |
Yes | Yes | 1 | No | Yes | Yes |
form |
Yes | Yes | 1 | Yes | Yes | Yes |
name |
Yes | Yes | 1 | Yes | Yes | Yes |
type |
Yes | Yes | 1 | Yes | Yes | Yes |
validationMessage |
Yes | Yes | 1 | Yes | Yes | Yes |
validity |
Yes | Yes | 1 | Yes | Yes | Yes |
willValidate |
Yes | Yes | 1 | Yes | Yes | Yes |
| Mobile | |||||||
|---|---|---|---|---|---|---|---|
| Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
| Basic support | Yes | Yes | Yes | 4 | ? | Yes | ? |
disabled |
Yes | Yes | Yes | 4 | ? | Yes | ? |
elements |
Yes | Yes | Yes | 4 | ? | Yes | ? |
form |
Yes | Yes | Yes | 4 | ? | Yes | ? |
name |
Yes | Yes | Yes | 4 | ? | Yes | ? |
type |
Yes | Yes | Yes | 4 | ? | Yes | ? |
validationMessage |
Yes | Yes | Yes | 4 | ? | Yes | ? |
validity |
Yes | Yes | Yes | 4 | ? | Yes | ? |
willValidate |
Yes | Yes | Yes | 4 | ? | Yes | ? |
<fieldset>.
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement