Domanda

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?

È stato utile?

Soluzione

found it

$('#time_slider').on("slidestop", function(){
    var val = $(this).val();
});
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top