Select form Property

Definition and Usage

form The property returns a reference to the form containing the dropdown list.

This property returns the form object on success.

See also:

HTML Reference Manual:HTML <select> form Attribute

HTML Reference Manual:HTML <select> Tag

Example

Returns the id of the form containing the dropdown list:

var x = document.getElementById("mySelect").form.id;

Try It Yourself

Syntax

selectObject.form

Technical Details

Return Value:

Reference to the form element containing the dropdown list.

Returns null if the dropdown list is not in the form.

Browser Support

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Support Support Support Support Support