HTML DOM FieldsetObject
Fieldset Object
The Fieldset object represents an HTML <fieldset> element.
Access a Fieldset Object
You can use getElementById() to access a <fieldset> element:
var
x = document.getElementById("myFieldset");
Try it Yourself
Tip:You can also access the Fieldset object by searching the form'selementscollection.
Create a Fieldset Object
You can use the document.createElement() method to create a <fieldset> element:
var x = document.createElement("myFieldset");
Try it Yourself
Fieldset Object Properties
= New in HTML5.
| Property | Description |
|---|---|
| disabled | Sets or returns whether the fieldset is disabled. |
| form | Returns a reference to the form that contains the fieldset. |
| name | Sets or returns the value of the name attribute of the fieldset. |
| type | Returns which type of form element the fieldset is. |
Standard Properties and Events
The Fieldset object also supports the standardpropertiesandevents.。
Related Articles
HTML Tutorial:HTML Forms
HTML Reference Manual:HTML <fieldset> Tag
Other Extensions