Return which type of form element the local datetime field is:
The result of x could be:
The type property returns which type of form element the local datetime field is.
Note: In the example above, Internet Explorer and Firefox returns "text", instead of "datetime-local".
The type property is supported in all major browsers.
Note: The <input type="datetime-local"> element is not supported in Internet Explorer or Firefox.
Return Value: | A String, representing the type of form element the local datetime field is |
---|