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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T21:34:43+00:00 2026-06-09T21:34:43+00:00

I have a jQuery UI slider: $(‘div.slider’).slider({ range: true, step: 250, min: 1000, max:

  • 0

I have a jQuery UI slider:

$('div.slider').slider({
    range: true,
    step: 250,
    min: 1000,
    max: 500000,
    values: [1000,500000],
    change: function(event, ui){
        console.log($(this).slider('values', 0)+','+$(this).slider('values', 1));
    },
    slide: function(event, ui){
        console.log($(this).slider('values', 0)+','+$(this).slider('values', 1));
    }
});

For some odd reason, when releasing the slider (mouseup) the value changes slightly from what it was. The slide event is returning something different than what the change event is. Anyone have any ideas what might be causing this and how I could solve it?

I’m going to have a pretty intense operation in the callback for the change event (meaning I can’t just use sldie), but also need to show the values of the slider live, so I can’t use just one or the other.

Here’s a fiddle with this oddity in action: http://jsfiddle.net/5W6Zh/

Thanks in advance

  • 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-06-09T21:34:44+00:00Added an answer on June 9, 2026 at 9:34 pm

    we ran into this tonight (and last night, and for the past few months). What we did to fix it was use ui.value and ui.values[0] instead of $(“#slider”).slider(‘values’,0).

    Use this:

    change: function(event, ui) {
      $('.values').text(ui.values[0] + ',' + ui.values[1]);
    }
    

    Instead of:

    change: function(event, ui) {
      $('.values').text($(this).slider('values', 0) + ',' + $(this).slider('values', 1));
    }
    

    I forked your jsfiddle and made it work:
    http://jsfiddle.net/danhixon/9JdhU/1/

    Honestly I don’t think I would have found the solution without your question and jsfiddle – I kept comparing it to the jquery-ui demo until I found this difference.

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

Sidebar

Related Questions

let's say I have a jQuery UI Slider like so: $(.mySlider).slider({ range: min, min:
i have a jquery slider, link: http://ekallevig.com/jshowoff/ this is my html code: <div id=features>
How do I add tick marks to the jQuery slider? Say I have values
Which is a good jQuery slider for moving a div element. I have come
I have a Jquery - UI slider like this the HTML <div id=slider1 class=slider></div>
So I have a javascript/jquery image slider. Each slide is a <div> element, children
I'm trying to get the jQuery slider to have set values to slide to
i have a jquery slider function and i want to customize it. my requirement
In the iPhone or Android, if you have a JQuery Slider, it doesn't quite
I have a jquery UI Slider that goes from 0 to 100 and default

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.