Input Date form Attribute
Definition and Usage
form
This property returns a reference to the form containing the date 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="date"> element:
var x = document.getElementById("myDate").form.id;
Grammar
inputdateObject.form
Technical Details
Return Value: | Reference to form elements containing date fields. If the date control is not in the form, it returns null . |
---|
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 |
Note:The <input type="date"> element does not display any date field/calendar in IE11 and earlier versions.