HTML DOM Input Week select() Method Last Updated : 26 Aug, 2022 Summarize Comments Improve Suggest changes Share Like Article Like Report 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> <title>HTML DOM Input Week select() Method</title> </head> <body> <center> <h1 style="color:green"> GeeksforGeeks </h1> <h2>DOM Input Week Select() Method</h2> <form id="myGeeks"> <input type="week" id="week_id" name="geeks" autofocus> </form> <br> <button onclick="myGeeks()"> Click Here! </button> <p id="GFG" style="font-size:20px;"></p> <!-- Script to select the content of a Input week field--> <script> function myGeeks() { var gfg = document.getElementById( "week_id").select(); } </script> </center> </body> </html> Output: HTML DOM Input Week select() Method Supported Browsers: Google Chrome 20Edge 12Opera 11 Comment More infoAdvertise with us Next Article HTML DOM Input Month select() Method M manaschhabra2 Follow Improve Article Tags : HTML HTML-DOM HTML-Methods Similar Reads 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 Week stepUp() Method The Input Week stepUp() method in HTML DOM is used to increase the value of the week field by the given number. This method will only increase the value of weeks not years. Syntax: weekObject.stepUp( number )Parameters: It accepts a single parameter number which is mandatory. It specifies the number 1 min read HTML | DOM Input Week stepDown() Method The Input Week stepDown() method in HTML DOM is used to decrease the value of the week field by the given number. This method will only decrease the value of weeks not years. Syntax: weekObject.stepDown( number ) Parameters: It accepts single parameter number which is mandatory. It specifies the num 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 Month select() Method 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 conten 1 min read HTML | DOM Input Week Object The Input Week object in HTML DOM represents an <input> element with type = "week" attribute. The element can be accessed by using getElementById() method. Syntax: document.getElementById("id"); where id is assigned to the <input> tag. Property Values: list: It returns the reference of d 3 min read Like