Fieldset form Property
Definition and Usage
form
This property returns a reference to the form containing the fieldset.
This property returns the form object on success.
Note:This property is read-only.
See also:
HTML Reference Manual:HTML <fieldset> form Attribute
HTML Reference Manual:HTML <fieldset> Tag
Example
Returns the id of the form containing the <fieldset> element:
var x = document.getElementById("myFieldset").form.id;
Syntax
fieldsetObject.form
Technical Details
Return Value: | Reference to form elements containing fieldset. If the fieldset is not in the form, it returns null. |
---|
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |