` element: --- ## Definition and Usage The `form` attribute returns a"> ` element: --- ## Definition and Usage The `form` attribute returns a" />
Easy Tutorial
❮ Prop Attr Isid Prop Date Name ❯

Input DatetimeLocal form Attribute

Input DatetimeLocal Object

Example

Returns the form ID of the <input type="datetime-local"> element:


Definition and Usage

The form attribute returns a reference to the form that contains the local datetime field.

This attribute returns a form object upon success.

Note: This attribute is read-only.


Browser Support

All major browsers support the form attribute.

Note: The <input type="datetime-local"> element is not supported in Internet Explorer or Firefox.


Syntax

Technical Details

| Return Value: | A reference to the form element that contains the local datetime field. Returns null if the datetime control is not within a form. | | --- | --- |

❮ Prop Attr Isid Prop Date Name ❯