Why doesn’t my javascript click event work on iOS/iPhone?
September 11, 2017
The overwhelming majority of browsers out there support event delegation for the click event, however, iOS does not. But, there is a way around this lack of support. Event delegation will work if the target of the event is a link or an input field.
So if you find yourself troubleshooting javascript event handlers on iOS, changing your <div>, <li> or any other element to an <a> tag will return better results.