Reputation: 615
This function only works after I refresh the page on jquery mobile.. any ideas?
$('.item').on('touchstart pageinit', function(){
I am trying to make something clickable that toggles a classs.. ie: a button. Only works after refresh.
Upvotes: 0
Views: 581
Reputation: 57309
Try this:
$(document).on('touchstart pageinit', '.item', function(){
Upvotes: 2