javascript - Flip toggle switch jquery -



javascript - Flip toggle switch jquery -

this question has reply here:

setting jquery mobile script 1 reply

i 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

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -