Skip to content
Related Articles

Related Articles

jQuery UI Spinner stepDown() Method

View Discussion
Improve Article
Save Article
  • Last Updated : 29 Jan, 2021

jQuery UI consists of GUI widgets, visual effects, and themes implemented using HTML, CAA, and jQuery. jQuery UI is great for building UI interfaces for the webpages. jQuery UI spinner widget help us to increment and decrement values of input element using up and down arrow. In this article, we will see how to use stepDown() method in jQuery UI slider.
The stepDown() method is used to decrease the steps value given no steps in jQuery UI spinner.



Approach: First, add jQuery UI scripts needed for your project.

<link href = “” rel = “stylesheet”>
<script src = “”></script>
<script src = “”></script>



<!doctype html>
<html lang="en">
    <meta charset="utf-8">
    <link href=
    <script src=""></script>
    <style type="text/css">
        #gfg input {
            width: 100px
        $(function() {
            $('#gfg1').click(function() {
    <h2>jQuery UI | spinner stepDown method</h2>
    <input id="gfg" />
    <button id="gfg1">-1</button>


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!