Fieldset typeProperty
Examples
Return which type of form element the fieldset is:
var x = document.getElementById("myFieldset").type;
xThe output result is:
fieldset
Try it yourself »
Definition and Usage
The type property returns which type of form element the fieldset is.
For a fieldset, this property always returns "fieldset".
Note:This property is read-only.
Browser Support
![]()
![]()
![]()
![]()
![]()
Except for Internet Explorer and Safari, other mainstream browsers support the type property.
Note:Opera 12 and earlier versions do not support the type property.
Syntax
fieldsetObject.type
Technical Details
| Return value: | A string representing the form element type of the fieldset. |
|---|
Other Extensions
Fieldset Object