jquery - .on("click") does not work on iOS -



jquery - .on("click") does not work on iOS -

i noticed that

$("body").on("click", "#id", function(event) {...

does not work on ios while

$("#id").on("click", function(event) {...

works perfectly. same site, same jquery (latest), same dom. can't utilize latter because #id added dynamically.

ideas?

try follows once:

$(document).on("click touchstart", "#id", function(event) {...

jquery ios click

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 -