Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Fieldset Object

HTML DOM Fieldset Object


Fieldset Object

The Fieldset object represents an HTML element.

.

Accessing the Fieldset Object

You can use getElementById() to access it

element:

var x = document.getElementById("myFieldset");

Try it

**Tip:** You can also access the Fieldset object by searching a form's elements collection.

Creating the Fieldset Object

You can use the document.createElement() method to create

element:

var x = document.createElement("myFieldset");

Try it

Fieldset Object Properties

= A property new in HTML5.

property Description
disabled Sets or returns whether the fieldset is disabled.
form Returns a reference to the form containing 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 standard property and Events.


Related Articles

HTML Tutorial:HTML Forms

HTML Reference Manual:HTML

tag