THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

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

Property
type Yes Not supported Yes Not supported Yes

Syntax

fieldsetObject.type

Technical Details

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

Fieldset Object Reference Fieldset Object