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
Post a Comment