How to get value from jQuery UI slider?
To read slider value/percentage value at anytime: var val = $(‘#slider’).slider(“option”, “value”);
To read slider value/percentage value at anytime: var val = $(‘#slider’).slider(“option”, “value”);
The posted solutions are totally workable, but here is another solution that requires no additional plugins and produces this (see fiddle): Here’s how to do it: Initiate the slider. For each of the possible values, append a label element with position: absolute (the slider is already position: relative, so the labels will be positioned relative … Read more
The volume property is like opacity, it goes between zero and one, one being 100%. Your code is so close, you just need to divide value by 100 when setting the volume of the <audio> element: $(“#slider”).slider({ value : 75, step : 1, range : ‘min’, min : 0, max : 100, change : function(){ … Read more