HTML DOM Fieldset form properties
Examples
Returns Form <fieldset> element's id:
var x = document.getElementById("myFieldset").form.id;
x The output is:
myForm
try it"
Definition and Usage
form property returns a reference to the form of the fieldset.
If successful, the property returns a form object.
Note: This property is read-only.
Browser Support
All major browsers support form property.
grammar
fieldsetObject .form
technical details
return value: | It contains a reference to a form of the fieldset. Fieldset if not in form, then return null. |
---|