Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7525455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T03:33:04+00:00 2026-05-30T03:33:04+00:00

I am creating a jQuery slider to loop through a collection of divs, if

  • 0

I am creating a jQuery slider to loop through a collection of divs, if I hold the slider down and drag it and let go. The handleSlider() is called. If I click on a random point in the slider, the function never gets called. I’ve tried to use two other event types with no luck. Is there an event handler for "When the user clicks/jumps" on the slider without sliding?

$( "#video_seek" ).slider({
        range: "max",
        step: 1,
        slide: function( event, ui ) {
        handleSlider();
        }
    });
$( "#video_seek" ).slider({ stop: function( event, ui ) {handleSlider();}});
$( "#video_seek" ).slider({ change: function( event, ui ) {handleSlider();}});
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T03:33:06+00:00Added an answer on May 30, 2026 at 3:33 am

    I believe your problem is in the syntax. Every time you use $ it makes a new jQuery object, so

    $( "#video_seek" ).slider({
            range: "max",
            step: 1,
            slide: function( event, ui ) {
            handleSlider();
            }
        });
    //below are not necessarily referring to the original slider, but rather creating new sliders.
    $( "#video_seek" ).slider({ stop: function( event, ui ) {handleSlider();}});
    $( "#video_seek" ).slider({ change: function( event, ui ) {handleSlider();}});
    

    @Andrew is correct in his syntax. All you should need is the ‘change’ event, which you can set in your original declaration like this:

    $( "#video_seek" ).slider({
        change: function( event, ui ) {
             handleSlider();
        }
    });
    

    or even like this:

    $( "#video_seek" ).slider({
        change: handleSlider
    });
    

    if you need to attach an event handler after the fact, do so like this:

    $( "#video_seek" ).bind( "slidechange", function(event, ui) {
         handleSlider();
    });
    

    or even:

    $( "#video_seek" ).bind( "slidechange", handleSlider);
    

    (Edit)

    Putting it all together and avoiding the production of subsequent jQuery objects.

    var videoSeek = $('#video_seek');
    videoSeek.slider({
         slide: handleSlider
    });
    //added later on not necessary just for example of doing so
    videoSeek.bind('slidechange', handleSlider);
    
    function handleSlider(event, ui){
         //do stuff
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating a custom drag helper (in jQuery): $('.dragme', element).draggable({ appendTo: 'body', helper :
I'm creating a CMS using jQuery and AJAX. When I click, my Add Campaign
So I tried creating the slide up down effect like in this example, http://paulsturgess.co.uk/articles/show/83-jquery-text-slide-up-slide-down-effect
I am creating my jQuery element like this: var addLink = $(<a/>, { click:
I am creating a calculator based on the jQuery UI range slider and have
I am creating a set of dynamic divs Let div id is div1 div2
Recently, I have been trying to accomplish creating a full-width jQuery slider that would
I am creating a slider using jquery animate function. The first image is moving
I'm currently creating an jQuery Plugin called Truncate - The Purpose of it is
I'm creating a jquery time entry in an onready() handler and hiding it in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.