Change your script like this. it works for me $( document).ready(function () { $('input:checkbox').iphoneStyle(); }) ...
stackoverflow.com