Input Date type eigenschap
Definitie en gebruik
type
Eigenschap retourneert het type van het formulierelement van het datumveld.
Voorbeeld
Return het type van het datumveld van het formulierelement:
var x = document.getElementById("myDate").type;
Syntax
inputdateObject.type
Technical details
Return value: | String value, indicating the type of form element to which the date field belongs. |
---|
Browser support
The numbers in the table indicate the first browser version that fully supports this property.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | 10.0 | Support | Support | Support |
Note:The <input type="date"> element does not display any date field/calendar in IE 11 and earlier versions.