HTML DOM Fieldset type property
Examples
Back fieldset which is a type of form element:
var x = document.getElementById("myFieldset").type;
x The output is:
fieldset
try it"
Definition and Usage
type property returns fieldset which is a type of form element.
For fieldset, the property always returns "fieldset".
Note: This property is read-only.
Browser Support
In addition to Internet Explorer and Safari, the other major browsers support the type attribute.
Note: Opera version 12 and earlier does not support the type attribute.
grammar
fieldsetObject .type
technical details
return value: | String representing the fieldset form element type. |
---|