104
rated 0 times
[
106]
[
2]
/ answers: 1 / hits: 20741
/ 8 Years ago, fri, march 11, 2016, 12:00:00
Can anyone please explain to me why this is working in the browser but not on mobile devices like Apple's iPhone. On iPhone, I never get the hello
from the alert. Why?
<div class=close>
Click here
</div>
JS:
$(document).on('click', '.close', function() {
alert('hello');
});
Example here: https://jsfiddle.net/27ezjrqr/5/
More From » jquery