HTML DOM Input Number stepUp() Method Last Updated : 02 Jan, 2024 Comments Improve Suggest changes Like Article Like Report The Input Number stepUp() method in HTML DOM is used to increase the value of the number field by the given value. Syntax: numberObject.stepUp( number )Parameters: It accepts a single parameter that is required: number: It specifies the number by which the number field will be increased. By default, it is incremented by 1.Return Value: It doesn’t return any value. Example: This example shows the working of stepUp() method. html <!DOCTYPE html> <html> <head> <title> HTML DOM Input Number stepUp() Method </title> </head> <body style="text-align:center;"> <h1>GeeksforGeeks</h1> <h2>HTML DOM Input Number stepUp() Method</h2> <form id="myGeeks"> <input type="number" id="number_id" name="geeks" value="11"> </form> <br> <button onclick="myGeeks()"> Click Here! </button> <!-- Script to increment the number --> <script> function myGeeks() { document.getElementById("number_id").stepUp(3); } </script> </body> </html> Output: Supported Browsers: Google ChromeInternet Explorer 10.0 +OperaSafari Comment More infoAdvertise with us Next Article HTML DOM Input Number stepUp() Method M manaschhabra2 Follow Improve Article Tags : Web Technologies HTML HTML-DOM Similar Reads 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 Number select() Method The Input Number select() Method in HTML DOM is used to select the contents of the Input Number field. it is the in-built method of the Number Object. Syntax numberObject.select() Parameters: This method does not contain any parameters. Return Value: This method does not return any value. Example: B 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 stepDown() Method The DOM Input Range stepDown() method in HTML DOM is used to decrease the value of the slider control by the given number. Syntax: rangeObject.stepDown(number) Parameters: It accepts a single and required parameter: number: It specifies the number of slider control to be decreased. By default, it is 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 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 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 Number name Property The DOM Input Number name Property in HTML DOM is used to set or return the value of name attribute of a number field. The name attribute is required for each input field. If the name attribute is not specified in an input field then the data of that field would not be sent at all. Syntax: It return 2 min read HTML | DOM Input Number max Property The DOM Input Number max Property in HTML DOM is used to set or return the value of the max attribute of a number field. The max attribute defines the maximum value for a number field. Syntax: It returns the max property. numberObject.maxIt is use to set the max property. numberObject.max = number P 2 min read HTML | DOM Input Number min Property The DOM Input Number min Property is used to set or return the value of the min attribute of a number field. The min attribute defines the minimum value for a input number field. Syntax: It returns the min property.numberObject.minIt is use to set the min property.numberObject.min = number Property 2 min read Like