Skip to content
Related Articles

Related Articles

Improve Article

jQuery UI Spinner change Event

  • Last Updated : 19 Feb, 2021
Geek Week

jQuery UI consists of GUI widgets, visual effects, and themes implemented using jQuery, CSS, and HTML. jQuery UI is great for building UI interfaces for the webpages. jQueryUI spinner widget helps us to increment and decrement values of an input element using up and down arrow. In this article, we will see how to use change event in jQuery UI slider. The change event is triggered when the value of the spinner has changed and the input is no longer focused on the jQuery UI spinner.


$( ".selector" ).spinner({
   change: function( event, ui ) {}

CDN Link: First, add jQuery UI scripts CDN link, needed for your task.

<link href = “” rel = “stylesheet”>

<script src = “”></script>

<script src = “”></script>

Below example illustrate the jQuery UI Spinner change event:



<!DOCTYPE html>
<html lang="en">
        <meta charset="utf-8" />
        <link href=
              rel="stylesheet" />
        <script src=
        <script src=
        <style type="text/css">
            #gfg input {
                width: 100px;
            $(function () {
                    change: function (event, ui) {
                        console.log("change has occured");
        <h2>jQuery UI | spinner change event</h2>
        <input id="gfg" />



Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML  course.

My Personal Notes arrow_drop_up
Recommended Articles
Page :