Input Number stepDown() Method
Definition and Usage
stepDown()
The method reduces the value of the numeric field by the specified number.
Tip:If you need to increase the value, please use stepUp() Method.
Example
Example 1
Reduce the value of the numeric field by 5:
document.getElementById("myNumber").stepDown(5);
Example 2
Reduce the value of the numeric field by 1 (default):
document.getElementById("myNumber").stepDown();
Syntax
numberObject.stepDown()number)
Parameter Value
Parameter | Description |
---|---|
number |
Required. Specifies the value to be reduced for the numeric field. If omitted, the number is reduced by "1". |
Technical Details
Return Value:
No Return Value.
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Supported | Not Supported | Supported | Supported | Supported |
Note:In Safari, you must enter a number in the numeric field before you can subtract the value.