Fieldset type Property

Fieldset Object Reference Fieldset Object

Example

Return which type of form element the fieldset is:

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

The result of x will be:

fieldset
Try it yourself »

Definition and Usage

The type property returns which type of form element a fieldset is.

For a fieldset, this property will always return "fieldset".

Note: This property is read only.


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The type property is supported in all major browsers, except Internet Explorer and Safari.

Note: The type property is not supported in Opera 12 and earlier versions.


Syntax

fieldsetObject.type

Technical Details

Return Value: A string, representing the type of form element the fieldset is

Fieldset Object Reference Fieldset Object