Input Month form Attribute
Definition and Usage
form
The property returns a reference to the form containing the month field.
This property returns the form object on success.
Note:This property is read-only.
Example
Returns the id of the form containing the <input type="month"> element:
var x = document.getElementById("myMonth").form.id;
Syntax
monthObject.form
Technical Details
Return Value: | Reference to form elements containing a month field. If the month field is not in the form; then it returns null . |
---|
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | 10.0 | Support | Support | Support |
Note:The <input type="month"> element does not display any date field/calendar in Firefox.