The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript jQuery click events not working on iPhone?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #45387

    Hi guys

    Really stumped as to how solve this problem I am having.

    I am working on some navigation for a mobile website. I have a simple menu icon that toggles the actual navigation to show and hide on click.

    The problem is it works on every browser, even on an IOS simulator, but when I click(tap) on the icon on my iPhone 5 (IOS6), nothing happens.

    Here is a link to a codepen…

    Now this is actual code taken from my site, and this codepen WORKS on my iPhone but the actual code doesn’t, making it even harder for me to debug. There is no other conflicting js.

    I have tried changing the div to an actual anchor link but that does not work either. I am not sure what else it could be.

    I am using jQuery version 1.9.1.


    Hi Not sure if you got the answer to this but it appears to be a bug in safari here is the fix that worked for me.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.