HTML DOM Input DatetimeLocal type property
Examples
Returns the local time field form element type:
var x = document.getElementById ( "myLocalDate") type.;
x The output is:
datetime-local
try it"
Definition and Usage
form type type type property returns the local time of the field.
Note: In the above example, Internet Explorer and Firefox return "text", rather than "datetime-local".
Browser Support
All major browsers support the type attribute.
Note: Internet Explorer or Firefox browser does not support <input> elements.
grammar
datetimelocalObject .type
technical details
return value: | String representing the form element type of the local time field |
---|
Input DatetimeLocal objects