I am trying to get a plugin to run on JQM, but I need it to wait and load when page two is active. Right now, its loading when it starts up. I have my pages set up with data-role='page'
. Here is my code:
$(document).ready(function(){
$("#two").bind('pageinit')
jQuery(".namesleft").fitText();
jQuery(".scoreleft").fitText();
jQuery(".namesright").fitText();
jQuery(".scoreright").fitText();
});
thanks in advance for the help