HTML DOM Fieldset type Property
Example
Return which type of form element the fieldset is:
var x = document.getElementById("myFieldset").type;
The x output will be:
fieldset
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
The type property is supported in all major browsers except Internet Explorer and Safari.
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. |
|---|
YouTip