X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

HTML DOM Fieldset Object


Fieldset Object

The Fieldset object represents an HTML <fieldset> element.

Access a Fieldset Object

You can access a <fieldset> element by using getElementById():

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

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

Create a Fieldset Object

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

var x = document.createElement("FIELDSET"); Try it

Fieldset Object Properties

= Property added in HTML5.

Property Description
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

Standard Properties and Events

The Fieldset object also supports the standard properties and events.


Related Pages

HTML tutorial: HTML Forms

HTML reference: HTML <fieldset> tag



Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook