THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

Input Range stepDown() Method

Input Range Object Reference Input Range Object

Example

Decrement the value of a slider control by "10":

document.getElementById("myRange").stepDown(10);
Try it yourself »

Definition and Usage

The stepDown() method decrements the value of the slider control by a specified number.

Tip: To increment the value, use the stepUp() method.


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The stepDown() method is supported in all major browsers, except Internet Explorer.


Syntax

rangeObject.stepDown(number)

Parameter Values

Parameter Description
number Required. Specifies the amount the value of the slider control should decrease.

If omitted, the value is decremented by "1"

Technical Details

Return Value: No return value

More Examples

Example

Decrement the value of a slider control by "1" (default):

document.getElementById("myRange").stepDown();
Try it yourself »

Input Range Object Reference Input Range Object