YouTip LogoYouTip

Prop Datetime Local Form

# Input DatetimeLocal form Property [![Image 8: Input DatetimeLocal Object Reference](#) Input DatetimeLocal Object](#) ## Example Return the id of the form that contains the element: var x = document.getElementById("myLocalDate").form.id; The _x_ output will be: myForm [Try it yourself Β»](#) * * * ## Definition and Usage The form property returns a reference to the form that contains the local time field. On success, this property returns a form object. **Note:** This property is read-only. * * * ## Browser Support ![Image 9: Internet Explorer](#)![Image 10: Firefox](#)![Image 11: Opera](#)![Image 12: Google Chrome](#)![Image 13: Safari](#) The form property is supported in all major browsers. **Note:** The element is not supported in Internet Explorer or Firefox. * * * ## Syntax _datetimelocalObject_.form ## Technical Details | Return Value: | A reference to the form element containing the local time field. Returns null if the time control is not in a form. | | --- | * * Input DatetimeLocal Object](#)
← Prop Datetime Local NameProp Datetime Local Disabled β†’