Easy Tutorial
❮ Css Colors Legal Prop Datetime Local Disabled ❯

HTML DOM Fieldset Object


Fieldset Object

The Fieldset object represents an HTML <fieldset> element.

Accessing Fieldset Object

You can use getElementById() to access a <fieldset> element:

Tip: You can also access the Fieldset object by searching the elements collection of the form.

Creating Fieldset Object

You can use the document.createElement() method to create a <fieldset> element:

Fieldset Object Properties

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 the type of form element the fieldset is.

Standard Properties and Events

The Fieldset object also supports standard properties and events.


Related Articles

HTML Tutorial: HTML Forms

HTML Reference: HTML <fieldset> Tag

❮ Css Colors Legal Prop Datetime Local Disabled ❯