I’m looking to implement the jQuery UI so that the slider bar fills one side of the bar with a color as you drag the handle along, sort of like a progress bar. Can anyone give me tips on how I might approach this problem?
Thank you in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
I probably should have looked at the
slider()documentation more closely. Here is a much easier way to do what I think you’re looking for. It’s already built into jQuery UI. The example below is taken directly from the jQueryslider()documention page which I linked to above. The key is therangeproperty passed into the options. Giving this a value of “min” will cause the slider to fill the left side with a color.The JavaScript:
The markup: