Friday, May 10, 2024
 Popular · Latest · Hot · Upcoming
52
rated 0 times [  53] [ 1]  / answers: 1 / hits: 20210  / 15 Years ago, fri, march 5, 2010, 12:00:00

I am looking for a fancy Slider control using JQuery/Javascript. The native JQuery slider is rather bland for this requirement. The slider will be used to specify the volume in the increments of 5. So, this slider should only let user slide in increments of 5.



One nice to have feature is to be able to show label above the slider position indicating what volume the user has selected.


More From » jquery

 Answers
6

Here's an example of the customization you're after that uses the jQuery UI Slider. It's all CSS in the background, you can customize the hell out of it.



Setting the snap you can do increments and update the amount like this:



$(#mySlider).slider({
orientation: vertical,
range: min,
min: 0,
max: 100,
step: 5,
slide: function(event, ui) {
$(#amount).val(ui.value);
}
});
$(#amount).val($(#mySlider).slider(value));

[#97408] Wednesday, March 3, 2010, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
mckenna

Total Points: 445
Total Questions: 109
Total Answers: 109

Location: Virgin Islands (U.S.)
Member since Sun, May 16, 2021
3 Years ago
;