Answer the question
In order to leave comments, you need to log in
Why doesn't jQuery's document.on('click') fire on iOS?
Hello guys. Tell me, who knows the reason, or who has come across why the on event does not fire in this example:
$(document).on('click', '.poster', function(e) {
e=e||window.event;
var target=e.target||e.srcElement;
if( $(e).parents('.opened').length ) return;
$(this).parents('.item').addClass('opened');
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question