Latest web development tutorials

HTML DOM Input Date form properties

Input Date Object Reference Input Date Object

Examples

Returns <input type = "date"> attribute of the form id:

var x = document.getElementById("myDate").form.id;
x The output is:
myForm

try it"

Definition and Usage

form property returns a reference to the form that contains date fields.

This property returns the form object when successful.

Note: This property is read-only.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support form property.

Note: Internet Explorer or Firefox browser does not support <input type = "date"> element.


grammar

inputdateObject .form

technical details

return value: Reference contains date fields form elements. If the date control is not in the form, return null.


Input Date Object Reference Input Date Object