Easy Tutorial
❮ Prop Tableheader Headers Met Element Getelementsbytagname ❯

Input DatetimeLocal type Attribute

Input DatetimeLocal Object

Example

Returns the type of the form element for the local time field:

var x = document.getElementById("myLocalDate").type;

x outputs:

datetime-local

Definition and Usage

The type attribute returns the form type of the local time field.

Note: In the above example, Internet Explorer and Firefox return "text" instead of "datetime-local".


Browser Support

All major browsers support the type attribute.

Note: Internet Explorer or Firefox browsers do not support the <input> element.


Syntax

Technical Details

| Return Value: | String, representing the form element type of the local time field | | --- | --- |


❮ Prop Tableheader Headers Met Element Getelementsbytagname ❯