HTML DOM Input Datetime form properties
Examples
Back <input type = "datetime"> form element belongs id:
var x = document.getElementById ( "myDatetime") form.id.;
x The output is: myForm
try it"
Definition and Usage
form property returns form contains references to datetime fields.
Success is the property returns form objects.
Note: This property is read-only attribute.
Browser Support
All major browsers support form property.
Note: Internet Explorer, Firefox, Opera 15 ( and higher) or Chrome supports the <input> element using type = "datetime".
grammar
datetimeObject .form
technical details
return value: | Datetime field contains a reference to the form elements. If there is no time and space in the form, return null. |
---|
Input Datetime Object