THE WORLD'S LARGEST WEB DEVELOPER SITE

Input Date type Property

❮ Input Date Object

Example

Return which type of form element the date field is:

var x = document.getElementById("myDate").type;
Try it Yourself »

Definition and Usage

The type property returns which type of form element the date field is.


Browser Support

Property
type Yes 10.0 Yes Yes Yes

Note: The <input type="date"> element does not show any date field/calendar in IE 11 and earlier versions.


Syntax

inputdateObject.type

Technical Details

Return Value: A String, representing the type of form element the date field is

❮ Input Date Object