Constantly confronted with the fact that some scripts do not work on the iPhone. In particular, I now encountered such a problem, the following script does not work on different models on the iPhone (the problem is definitely not in the browser, I checked it in safari, chrome, yandex browser):
$(document).on('click', '.modal-layer__closure', function () { $(this).closest('.modal-layer').removeClass('active'); return false; }); Can someone explain the reason and how to continue to avoid such problems?
jquerylibrary. Download thedebuggerand see what the error is, and no one will guess. - And