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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T21:35:58+00:00 2026-06-07T21:35:58+00:00

I am using a jQuery UI slider on a 1 – 10 rating scale.

  • 0

I am using a jQuery UI slider on a 1 – 10 rating scale. I would like to add hover support to the slider. Right now when you slide it, the slider turns colors as you increase the rating scale. It also displays a 1/10 scale outside the slider.

I would like to add the ability for people to hover over a portion of the slider and have it change to the appropriate color and change the 1/10 to the proper rating based on where the cursor is hovering. But I don’t want the actual change event to fire until the user clicks the slider to save the rating. If they hover off without clicking then it restores to the original onload state.

Is this possible? Does the slider offer any hover functionality?

  • 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-07T21:36:00+00:00Added an answer on June 7, 2026 at 9:36 pm

    I was able to accomplish what I needed thanks to the jQuery forums. Below is my solution based on this thread: http://forum.jquery.com/topic/add-hover-preview-support-to-jquery-ui-slider

    It works great but there is still one Firefox issue I am having. I have broken the bug out into a new thread: jQuery mousemove erratic movements and jumpy results in Firefox

    $('#user-rating-slider').slider({
        value: userRating,
        min: 0,
        max: 10,
        step: 1,
        slide: function(event, ui) {
            updateSlider(ui.value);
        },
        change: function(event, ui) {
            ...
        }
    }).on({
        mousemove: function(e) {
            e.stopPropagation();
    
            var width = $(this).width();
            var offset = $(this).offset();
    
            var value = Math.round(((e.pageX - offset.left) / width) * (10 - 0)) + 0;
    
            updateSlider(value);
        },
        mouseout: function() {
            updateSlider(userRating);
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When using the jquery slider, I would like to change the default color of
I'd like to use a slider on a html form using jQuery. The slider
All, I'm implementing a Coda like jQuery slider (I'm using Niall Doherty's excellent implementation:
I have a question, Im using jquery, jqueryui and basic ajax. I would like
I am using a jQuery slider that requires I add new attributes to the
I adapted the jQuery slider code from http://webdeveloperplus.com/jquery/featured-content-slider-using-jquery-ui/ into my website which is based
I am looking for a fancy Slider control using JQuery/Javascript. The native JQuery slider
I am using jQuery UI Slider in a div which is dragable. On clicking
I am using supersized jQuery slider plugin which change one on clicking NAV anchor
I am using nivo jquery image slider in my asp.net application, but after page

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.