Input DatetimeLocal form Attribute
Definition and Usage
form
This property returns a reference to the form containing the local date-time 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="datetime-local"> element:
var x = document.getElementById("myLocalDate").form.id;
syntax
datetimelocalObject.form
Technical Details
Return Value: |
Reference to a form element containing a local date/time field. If this date control is not in the form, it will return |
---|
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="datetime-local"> element does not display any date/time field/calendar in Firefox.