Question

i have a simple slider

<input type="range" name="slider" id="slider" min="0" max="100" value="50">

i would like to get its value when i release a tap event on it.

something like what the change event does in the example below

$('#time_slider').on("change", function(){
    var val = $(this).val();
});

I'm open to examples outside JQM as well

any ideas?

Était-ce utile?

La solution

found it

$('#time_slider').on("slidestop", function(){
    var val = $(this).val();
});
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top