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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T07:09:57+00:00 2026-06-11T07:09:57+00:00

I have a problem with jQuery UI Here is example: http://jsfiddle.net/zFsZV/7/ When you move

  • 0

I have a problem with jQuery UI
Here is example:
http://jsfiddle.net/zFsZV/7/
When you move slider, black ‘progress bar’ move exactly same(they have same width), but when you move back slider, black div is one step forward.
Is it possible to fix it somehow? I would like to have black div on same level like slider

  • 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-11T07:09:58+00:00Added an answer on June 11, 2026 at 7:09 am

    This only way I can see how to get this to work is to set a timeout in javascript which updates the position based on the .ui-slider-range width.

    Check out this fiddle.

    $(document).ready(function() {
    
        $('#slider').slider({
            range: "min",
            value: 1,
            min: 1,
            max: 10,
            step: 1,
            slide: function(event, ui){   
                console.log(ui);
                console.log(ui.handle.attributes[2].value);
                setTimeout(setPosition, 10);            
            }
        })
        $('#slider').slider('value');
    
    });
    function setPosition(){
        $('.color').css('width', $('.ui-slider-range').width());
    }
    

    Through inspecting the ui object which you can access in the slide event, the position of the element seems to always be set after the event takes place, which means you cannot actually directly set the correct width/left position. If you look at my example though, setting a timeout means that the correct position is set.

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

Sidebar

Related Questions

Example here: http://jsfiddle.net/KyW6c/2/ I have an ordered list. Each list item is a project
First of all here is a jsFiddle example of my problem: http://jsfiddle.net/xJtAr/ I got
I have a working fiddle of the problem here: http://jsfiddle.net/thindery/ZHhBR/ I need to be
Here's an contrived example of what's going on: http://jsfiddle.net/adamjford/YNGcm/20/ HTML: <a href=#>Click me!</a> <div></div>
I have a problem with jQuery parallax effect for my body's background. Here is
I'm new here and I have a problem with the jQuery's function - animate
I have a little problem with Jquery getJSON function. my json here { entries:
hey everyone, here is the site SEE BELOW I have a slight jquery problem
Here's my problem, I have a piece of jquery that works fine in modern
I have problem while using jquery maskedinput with asp.net textbox. I have a check

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.