Fieldset type Attribute

Definition and Usage

type The attribute returns what type of form element the fieldset is.

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

Note:This property is read-only.

See also:

HTML Reference Manual:HTML <fieldset> Tag

Example

Returns which type of form element the fieldset is:

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

Try It Yourself

Syntax

fieldsetObject.type

Browser Support

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Supported Not Supported Supported Not Supported Supported

Technical Details

Return Value: A string value that represents the form element type of the fieldset.