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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -