Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. HTMLFieldSetElement

HTMLFieldSetElement

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨July 2015⁩.

TheHTMLFieldSetElement interface provides special properties and methods (beyond the regularHTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of<fieldset> elements.

EventTarget Node Element HTMLElement HTMLFieldSetElement

Instance properties

Inherits properties from its parent,HTMLElement.

HTMLFieldSetElement.disabled

A boolean value reflecting thedisabled HTML attribute, indicating whether the user can interact with the control.

HTMLFieldSetElement.elementsRead only

The elements belonging to this field set. The type of this property depends on the version of the spec that is implemented by the browser.

HTMLFieldSetElement.formRead only

AnHTMLFormControlsCollection orHTMLCollection 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 thenull value if none matches.

HTMLFieldSetElement.name

A string reflecting thename HTML attribute, containing the name of the field set. This can be used when accessing the field set in JavaScript. It isnot part of the data which is sent to the server.

HTMLFieldSetElement.typeRead only

The string"fieldset".

HTMLFieldSetElement.validationMessageRead only

A string 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 isfalse), or it satisfies its constraints.

HTMLFieldSetElement.validityRead only

AValidityState representing the validity states that this element is in.

HTMLFieldSetElement.willValidateRead only

A boolean valuefalse, because<fieldset> objects are never candidates for constraint validation.

Instance methods

Inherits methods from its parent,HTMLElement.

HTMLFieldSetElement.checkValidity()

Always returnstrue because<fieldset> objects are never candidates for constraint validation.

HTMLFieldSetElement.reportValidity()

Always returnstrue because<fieldset> objects are never candidates for constraint validation.

HTMLFieldSetElement.setCustomValidity()

Sets a custom validity message for the field set. If this message is not the empty string, then the field set is suffering from a custom validity error, and does not validate.

Specifications

Specification
HTML
# htmlfieldsetelement

Browser compatibility

See also

  • The HTML element implementing this interface:<fieldset>.

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp