Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • jQuery UI-Draggable
  • jQuery UI-Droppable
  • jQuery UI-Resizable
  • jQuery UI-Selectable
  • jQuery UI-Sortable
  • jQuery UI-Accordion
  • jQuery UI-Autocomplete
  • jQuery UI-Button
  • jQuery UI-Checkboxradio
  • jQuery UI-Controlgroup
  • jQuery UI-Datepicker
  • jQuery UI-Dialog
  • jQuery UI-Menu
  • jQuery UI-Progressbar
  • jQuery UI-Selectmenu
  • jQuery UI-Slider
  • jQuery UI-Spinner
  • jQuery UI-Tabs
  • jQuery UI-Tooltip
  • jQuery
  • Web Technology
Open In App
Next Article:
jQuery UI Slider stop Event
Next article icon

jQuery UI Slider stop Event

Last Updated : 23 May, 2022
Comments
Improve
Suggest changes
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 stop event is used to trigger when the value of the slider is changed.

The Slider stop Event accepts two values that are listed below:

  • event: It represents the event for the slider widget.
  • ui: It is of an object type that accepts three values that are -
    • handle: It represents the handle that was changed. It is of Element type.
    • handleIndex: It represents the numeric index of the handle that is moved when the slider is sliding. It is of a Number type value.
    • value: It represents the current value of the slider. It is of a number type value.

Syntax:

Initialize the slider with the stop callback:

$( ".selector" ).slider({      stop: function( event, ui ) {}  });

Bind an event listener to the slidestop event:

$( ".selector" ).on(       "slidestop",       function( event, ui ) {}   );

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 stop Event.

HTML
<!DOCTYPE html> <html lang="en"> <head>     <meta charset="utf-8" />     <title>         jQuery UI Slider stop Event     </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;         }         #GFG {             width: 600px;         }     </style> </head> <body>     <center>         <h1>GeeksforGeeks</h1>         <h2>jQuery UI Slider stop Event</h2>         <div id="GFG"></div>     </center>     <script>         $(function () {             $("#GFG").slider();             $("#GFG").on('slidestop', function () {                 alert('Slider Stop Event Triggered!');             })         });     </script> </body> </html> 

Output:

 

Reference: https://api.jqueryui.com/slider/#event-stop


Next Article
jQuery UI Slider stop Event

B

blalverma92
Improve
Article Tags :
  • Web Technologies
  • JQuery
  • jQuery-UI
  • jQuery-UI-Slider

Similar Reads

    jQuery UI Slider start Event
    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 ran
    2 min read
    jQuery UI Spinner stop Event
    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
    1 min read
    jQuery UI Sortable stop Event
    jQuery UI consists of GUI widgets, visual effects, and themes implemented using the jQuery JavaScript Library. jQuery UI is great for building UI interfaces for the webpages. It can be used to build highly interactive web applications or can be used to add widgets easily. The jQuery UI Sortable stop
    2 min read
    jQuery UI Slider slide Event
    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 ran
    2 min read
    jQuery Mobile Slider stop Event
    jQuery Mobile is a web-based technology used to make responsive content that can be accessed on all smartphones, tablets, and desktops. In this article, we will be using the jQuery Mobile Slider stop event that triggered at the end of an interaction with the slider. Callback Parameter: The callback
    2 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences