javascript - Flip toggle switch jquery -
javascript - Flip toggle switch jquery -
this question has reply here:
setting jquery mobile script 1 replyi created flip toggle switch with:
<select id="flip1" data-role="flipswitch"> <option value="true">true</option> <option value="false">false</option> </select>
my script code looks this:
<script> $( "#flip1").change(function(){ alert("flip"); }); </script>
but if alter button, nil happened. maybe can help me. give thanks
try this:
with ready function
http://jsfiddle.net/z5stp/
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script> $(document).ready(function(){ $( "#flip1").change(function(){ alert("flip"); }); }); </script>
javascript jquery html jquery-mobile
Comments
Post a Comment