Input Date form attribute
Example
Return the form containing the form id of the attribute:
var x = document.getElementById("myDate").form.id;
x
The output is:
myForm
Try it »
Definition and Usage
The form attribute returns a reference to the form that contains the date field.
This attribute returns the form object on success.
Note: This property is read-only.
Browser support





All major browsers support the form attribute.
**Note:** Internet Explorer or Firefox browser does not support .
Syntax
inputdateObject
.form
Technical Details
| Return Value: | A reference to the form element containing the date field. If the date control is not in a form, returns null. |
|---|
Input Date Object