Good day.
He made an adaptive version of the site and, as always, it was necessary to add a hamburger.
When you clicked to make the menu go, but on iPhones and safari does not work.
cursor: pointer set, click on touchstart changed, in touchstart , I tried all the tips from the Internet, but it didn’t work.
Even if you simply register:

 <a href="#" onclick="alert()">Клик</a> 

Does not work.

    2 answers 2

    Understood the reason. I had a f-tion

     function sendForm(form, form_name='default'){ 

    as it turned out because of form_name='default' - js fell on iPhones and safaris, without a clue why. Rewrote the f-tion, it all worked.

    • Adding default arguments to a function is a novelty for JS (relatively new, of course). If Safari is old enough, then the error. - user207618

    There is such an option, you can do it without jQuery, but I didn’t have such a need:

     var deviceAgent = navigator.userAgent.toLowerCase(), agentID = deviceAgent.match(/(iphone|ipod|ipad)/), mobileLink = $('.mobile-link'); // Добавить этот класс всем ссылкам, которые должны нажиматься touchMenuEvent = agentID ? "touchstart" : "click"; mobileLink.bind(touchMenuEvent, function() { $(this).click(); });