HTML | DOM Select form Property
The Select form property in HTML DOM is used to return the reference to the form that contains the drop-down list. This property returns a form object on success otherwise (drop-down list is not in the form) returns NULL.
Return Value: A reference to the form element containing the drop-down list. If the drop-down list is not in a form, null is returned
Below program illustrates the Select form property in HTML DOM:
Example: This example uses Select form property to returns the id of the form containing the drop-down list.
Before Clicking the button:
After Clicking the button:
Supported Browsers: The browser supported by DOM Select form Property are listed below:
- Apple Safari
- Internet Explorer
- Google Chrome
Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML course.