HTML DOM Input Month select() Method Last Updated : 29 Aug, 2022 Summarize Comments Improve Suggest changes Share Like Article Like Report The input Month select() method in HTML DOM is used in selecting the content of the month text field. Syntax: monthObject.select() Parameters: It does not accept any parameter. Return Value: It does not return any value. Example: This example uses the input Month select() method to select the content inside the month Field. HTML <!DOCTYPE html> <html> <head> <title> HTML DOM Input Month select() Method </title> </head> <body style="text-align:center;"> <h1>GeeksForGeeks</h1> <h2>DOM Input Month select() Method</h2> <form id="myGeeks"> <input type="month" id="month_id" name="geeks" autofocus> </form> <br> <b> <p> Click on the below button to select the content of Month field. </p> </b> <button onclick="myGeeks()"> Click Here! </button> <p id="GFG" style="font-size:20px;"></p> <!-- Script to Get the content of a Month field--> <script> function myGeeks() { // select the content of the Input month field . var gfg = document.getElementById( "month_id").select(); } </script> </body> </html> Output: HTML DOM Input Month select() Method Supported Browsers: Google Chrome 20 and aboveEdge 12 and aboveOpera 11 and above Comment More infoAdvertise with us Next Article HTML | DOM Input Month stepDown() Method M manaschhabra2 Follow Improve Article Tags : HTML HTML-DOM HTML-Methods Similar Reads HTML DOM Input Month stepUp() Method The Input Month stepUp() method in HTML DOM is used to increase the value of the month field by the given number. This method will only increase the value of months not years. Syntax: monthObject.stepUp( number )Parameters: It accepts a single parameter which is required. number It specifies the n 1 min read HTML | DOM Input Month stepDown() Method The DOM Input Month stepDown() method in HTML DOM is used to decrease the value of the month field by the given number. This method will only decrease the value of months not years. Syntax: monthObject.stepDown(number) Parameters: It accepts a single and required parameter: number It specifies the n 1 min read HTML DOM Input Date select() Method The Input Date select() Method in HTML DOM is used to select the contents of the Date text field. It is the predefined method of the Input date object. Syntax: dateObject.select() Parameter: This method does not contain any parameters. Return Values: It does not return any value. Example: Below exam 1 min read HTML DOM Input Week select() Method The input week select() method in HTML DOM is used in selecting the content of the week field. Syntax: weekbject.select() Parameters: It does not accept any parameter. Example: This example uses the input week select() method to select the week field. HTML <!DOCTYPE html> <html> <head 1 min read HTML DOM Input Time select() Method The input Time select() method in HTML DOM is used in selecting the content of the time text field. Syntax: timeObject.select() Parameters: It does not accept any parameter. Return Value: It does not return any value. Example: This example uses the input Time select() method to select the content i 1 min read HTML | DOM Input Month Object The Input Month Object in HTML DOM is used to represent an HTML input element with type= "month" attribute. The input element with type= "month" attribute can be accessed by using getElementById() method. Syntax: It is used to access <input> element with type="month" attribute.document.getElem 3 min read Like