jquery mobile - slide stop function -
i run function when stop slide jquery mobile slide.
i have slide:
<div data-role="fieldcontain"> <fieldset data-role="controlgroup" data-mini="true"> <label for="slider2"> test </label> <input type="range" name="slider" id="testslider" value="0" min="-50" max="50" data-highlight="true" /> </fieldset> </div> and javascript:
$(function() { $( "#slider2" ).bind( "stop", function(event, ui) { alert("stop"); }); }); but don't work!
how can run function when release mouse (finger)??
the right method following:
$("#slider2").on( 'slidestop', function(event) { // code goes here } );
Comments
Post a Comment