Option form Property
Option Object
Definition and Usage
The form property returns a reference to the form that contains the option.
This attribute returns the form object.
Syntax
optionObject.form
Browser support





All major browsers support the form attribute
Example
Example
This example returns the id of the form to which the selected option in the dropdown list belongs:
Try it »
Option Object