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 7530019
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T04:47:43+00:00 2026-05-30T04:47:43+00:00

As far as I know the jQuery UI Range slider should move the nearest

  • 0

As far as I know the jQuery UI Range slider should move the nearest dragger/handle if one clicks on the slider. However in my case this does not seem to happen and only the left dragger is being moved. As an example you can see the following code:

$(function() {
    $( "#slider-range" ).slider({
        range: true,
        min: 0,
        max: 4,
        step: 1,
        values: [ 0, 4 ],
        slide: function( event, ui ) {
            $( "#amount" ).val( "$" + ui.values[ 0 ] + " - $" + ui.values[ 1 ] );
        }
    });
    $( "#amount" ).val( "$" + $( "#slider-range" ).slider( "values", 0 ) +
        " - $" + $( "#slider-range" ).slider( "values", 1 ) );
});

And you can see this jsFiddle of that example: http://jsfiddle.net/dZ7Yg/

If you try to move the right dragger/handle to the second point by simply clicking on the slider, you’ll not be able to do that. Once the right dragger reaches the third point, it will not move to the second one if you even click 1px before it, it will move the left one in any case.

Could anybody help me with this? How can this be resolved?

Thanks for helping!

  • 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-30T04:47:45+00:00Added an answer on May 30, 2026 at 4:47 am

    The click on those bar is little tricky, but I think below is how it behaves,

    Condition 1: The left slider has precedence over right slider.

    Condition 2: The slider moves to the next position when you click closer to the next position. For ex: In the below image, the left slider will move to P1 when you click anywhere in the blue rectangle enclosing P1.

    Condition 3: Clicking anywhere closer to Slider does nothing.

    enter image description here

    Remember those conditions and read below,

    When you move right slider to P2, and now you want to move right slider from P2 to P1, however left slider takes precedence and moves it to P1.

    enter image description here

    Now Again clicking on P1 doesn’t move right slider because the left slider is on P1 and as per condition 3 it does nothing.

    To me it looks like jQuery slider for range is not behaving as we expect.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create a pagination script using jquery UI's slider widget. So far
Do you know if jquery widgets such as slider or button are available for
As far as I know, I'm following the correct usage form on: http://api.jquery.com/multiple-attribute-selector/ ,
I know there is a far more elegant/efficient way of doing this (in php
this is a conceptual question. As far as I know, MVC has a stateless
As far as know, I must be careful with PHP, and I think Javascript.
As far as I know, foreign keys (FK) are used to aid the programmer
As far as I know, Flash has to pass info off to another external
As far as I know, in gcc you can write something like: #define DBGPRINT(fmt...)
As far as i know it is not possible to do the following 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.