I am working on http://gamercity.info/ymusic/. And I am using UI slider as seek bar. While the video is played I want to invoke a seekTo(seconds)
function if user clicked anywhere on the seek bar. How to get new value of seconds
after click event?
Syntax: $( ". selector" ). slider("value");
jQuery UI slider is used to obtain a numeric value within a certain range. The main advantage of slider over text input is that it becomes impossible for the users to enter an invalid value. Every value they can pick with the slider is valid.
A control for selecting a single value from a continuous range of values.
To read slider value/percentage value at anytime:
var val = $('#slider').slider("option", "value");
$('#slider').slider({ change: function(event, ui) { alert(ui.value); } });
http://jqueryui.com/demos/slider/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With