Input Month select() Method
Example
Select the content of a month text field:
document.getElementById("myMonth").select();
Try it Yourself »
Definition and Usage
The select() method is used to select the content of a month text field.
Browser Support
Method | |||||
---|---|---|---|---|---|
select() | Yes | Yes | Yes | Yes | Yes |
Note: Firefox selects the entire month text field, while the other browsers only select the month-part of the text field.
Syntax
monthObject.select()
Parameters
None. |
Technical Details
Return Value: | No return value |
---|
❮ Input Month Object