jQuery UI Slider instance() Method Last Updated : 24 May, 2022 Summarize Comments Improve Suggest changes Share Like Article Like Report jQuery UI consists of GUI widgets, visual effects, and themes implemented using HTML, CSS, and jQuery. jQuery UI is great for building UI interfaces for the webpages. jQuery UI provides us a slider control through the slider widget. The slider widget helps us to get a certain value using a given range. We can change the slider value by sliding. The instance() method is used to return the slider's instance object. If the slider element has no associated element then it returns undefined. Syntax: $( ".selector" ).slider( "instance" ); Parameters: This method does not accept any parameters. Return Value: This method returns the slider instance object. CDN Link: First, add jQuery UI scripts needed for your project. <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/smoothness/jquery-ui.css"><script src="//code.jquery.com/jquery-1.12.4.js"></script><script src="//code.jquery.com/ui/1.12.1/jquery-ui.js"></script> Example: This example describes the jQuery UI Slider instance() method. HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title> jQuery UI Slider instance() Method </title> <link rel="stylesheet" href= "//code.jquery.com/ui/1.12.1/themes/smoothness/jquery-ui.css"> <script src= "//code.jquery.com/jquery-1.12.4.js"></script> <script src= "//code.jquery.com/ui/1.12.1/jquery-ui.js"> </script> <style> h1 { color: green; } #divID { width: 600px; } </style> </head> <body> <center> <h1>GeeksforGeeks</h1> <h2>jQuery UI Slider instance() Method</h2> <div id="divID"></div> <br> <input type="button" id="btn" value="Slider Instance Value" style="padding: 5px 15px;"> <br> <div id="res"></div> </center> <script> $(function () { $("#divID").slider(); $("#btn").on('click', function() { var res = $("#divID").slider("instance"); console.log(res); }); }); </script> </body> </html> Output: Reference: https://api.jqueryui.com/slider/#method-instance Comment More infoAdvertise with us Next Article jQuery UI Slider instance() Method B blalverma92 Follow Improve Article Tags : Web Technologies JQuery jQuery-UI jQuery-UI-Slider Similar Reads jQuery UI Spinner instance() Method jQuery UI consists of GUI widgets, visual effects, and themes implemented using HTML, CSS, and jQuery. jQuery UI is great for building UI interfaces for the webpages. jQuery UI spinner widget helps us to increment and decrement values of an input element using up and down arrows. In this article, we 2 min read jQuery UI Slider disable() Method 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 provides us a slider control through the slider widget. Slider helps us to get a certain value using a given range. In this 1 min read jQuery UI Sortable instance() Method jQuery UI is a web-based technology and consists of GUI widgets, visual effects, and themes implemented using the jQuery, JavaScript Library. jQuery UI is the best tool for building UI interfaces for the webpages. It can also be used to build highly interactive web applications or can be used to add 2 min read jQuery UI Resizable instance() Method jQuery UI Â is a web-based technology and consists of GUI widgets, visual effects, and themes implemented using the jQuery, JavaScript Library. jQuery UI is the best tool for building UI interfaces for the webpages. It can also be used to build highly interactive web applications or can be used to ad 2 min read jQuery UI Slider enable() Method 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 provides us a slider control through slider widget. Slider helps us to get a certain value using a given range. In this arti 1 min read Like