Input Month type Property
Example
Return which type of form element the month field is:
var x = document.getElementById("myMonth").type;
Try it Yourself »
Definition and Usage
The type property returns which type of form element the month field is.
Note: In the example above, Firefox returns "text", while the other browsers return "month".
Browser Support
Property | |||||
---|---|---|---|---|---|
type | Yes | 10.0 | Not supported | Yes | Yes |
Syntax
monthObject.type
Technical Details
Return Value: | A String, representing the type of form element the month field is |
---|
❮ Input Month Object