HTML DOM Input Week stepUp() Method Last Updated : 29 Jan, 2024 Summarize Comments Improve Suggest changes Share Like Article Like Report 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 of weeks to be increased. By default, the weeks incremented by 1. Return Value: It doesn't return any value. Example: This example uses Input Week stepUp() method to increase the week by 2. html <!DOCTYPE html> <html> <head> <title> HTML DOM Input Week stepUp() Method </title> </head> <body style="text-align:center;"> <h1>GeeksforGeeks</h1> <h2>DOM Input Week stepUp() Method</h2> <form id="myGeeks"> <input type="week" id="week_id" name="geeks" value="2019-W03"> </form><br> <button onclick="myGeeks()"> Click Here! </button> <!-- Script to increment the week --> <script> function myGeeks() { document.getElementById("week_id").stepUp(2); } </script> </body> </html> Output: Supported Browsers: Google Chrome 20Edge 12Opera 11 Comment More infoAdvertise with us Next Article HTML | DOM Input Week stepDown() Method M manaschhabra2 Follow Improve Article Tags : Web Technologies HTML HTML-DOM Similar Reads 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 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 Date stepUp() Method The Input Date stepUp() method in HTML DOM is used to increment the value of date field by a specified number. The Input Date stepUp() method can only be used on the days and not on months and years. Syntax: inputdateObject.stepUp( number ) Parameters: This method accepts single parameter number whi 1 min read 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 Range stepUp() Method The DOM Input Range stepUp() method in HTML DOM is used to increase the value of the slider control by the given number. Syntax: rangeObject.stepUp(number) Parameters: It accepts a single and required parameter: number: It specifies the number of slider control to be increased. By default, it is inc 1 min read HTML | DOM Input Week step Property The DOM Input Week step Property is used to set or return the value of the step attribute of a week field. The step attribute in HTML is used to set the discrete step size of the element. The default stepping value for week inputs is 1. The step attribute could be used with min and max attribute for 2 min read Like