The Fieldset object represents an HTML <fieldset> element.
You can access a <fieldset> element by using getElementById():
チップ: You can also access a Fieldset object by searching through the elements collection of a form.
You can create a <fieldset> element by using the document.createElement() method:
| Property | 説明 |
|---|---|
| disabled | Sets or returns whether a fieldset is disabled, or not |
| form | Returns a reference to the form that contains the fieldset |
| name | Sets or returns the value of the name attribute of a fieldset |
| type | Returns which type of form element the fieldset is |
The Fieldset object also supports the standard properties and events.
HTML tutorial: HTML Forms
HTML reference: HTML <fieldset> tag