Input Month form Property
Example
Return the id of the form containing the <input type="month"> element:
var x = document.getElementById("myMonth").form.id;
Try it Yourself »
Description
The form property returns a reference to the form containing the month field.
This property returns a form object on success.
Note: This property is read only.
Browser Support
Property | |||||
---|---|---|---|---|---|
form | Yes | 10.0 | Yes | Yes | Yes |
Note: The <input type="month"> element does not show any date field/calendar in Firefox.
Syntax
monthObject.form
Technical Details
Return Value: | A reference to the form element containing the month field. If the month field is not in a form, null is returned |
---|
❮ Input Month Object