Input Range stepUp() Method
Definition and Usage
stepUp()
The method increases the value of the slider control by the specified number.
Tip:To decrease the value, please use stepDown() Method.
Instance
Example 1
Increase the value of the slider control by "10":
document.getElementById("myRange").stepUp(10);
Example 2
Increase the value of the slider control by "1" (default):
document.getElementById("myRange").stepUp();
Syntax
rangeObject.stepUp(number)
Parameter Value
Parameter | Description |
---|---|
number |
Required. Specifies the amount by which the value of the slider control should be increased. If omitted, the value is increased by "1". |
Technical Details
Return Value:
No Return Value.
Browser Support
The numbers in the table indicate the first browser version that fully supports this property.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | 12.0 | Support | Support | Support |