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 »

Description

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


Browser Support

Property
type Yes 12.0 Yes Yes Yes

Note: <input type="date"> does not show as a proper date field in IE11, and earlier.


Syntax

inputdateObject.type

Technical Details

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

❮ Input Date Object
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.