Skip to content
Related Articles

Related Articles

jQuery UI Spinner widget() Method

Improve Article
Save Article
  • Last Updated : 03 Dec, 2021
Improve Article
Save Article

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 input element using up and down arrow. In this article we will see how to use widget method in jQuery UI slider. The widget method returns the spinner widget element in the jQuery UI spinner.




  • First, add jQuery UI scripts needed for your project.

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

<script src = “”></script>

<script src = “”></script>

Example 1:


<!doctype html>
<html lang = "en">
    <meta charset = "utf-8">
    <link href
          rel = "stylesheet">
    <style type = "text/css">
      #gfg input {width: 100px}
      $(function() {
        var a = $("#gfg").spinner('widget');
    <h2>jQuery UI spinner widget method</h2
    <input id = "gfg" />


My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!