Input Range form Property
Definition and Usage
form
This property returns a reference to the form containing the slider control.
This property returns the form object on success.
Note:This property is read-only.
Example
Return the id of the form containing the <input type="range"> element:
var x = document.getElementById("myRange").form.id;
Syntax
rangeObject.form
Technical details
Return value: |
Reference to the form element containing the slider control. If the slider control is not in the form, it returns |
---|
Browser support
The numbers in the table indicate the first browser version that fully supports this property.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | 10.0 | Support | Support | Support |