Checkbox form attribute
Checkbox Object
Definition and Usage
The form attribute returns a reference to the form that contains the checkbox.
This attribute returns the form object.
Syntax
checkboxObject.form
Browser support





All major browsers support the form attribute
Example
Example
The example below returns the id of the form to which the checkbox belongs:
Try it »
Checkbox Object