Answer the question
In order to leave comments, you need to log in
Click event not working on iOS?
The usual addEventListener('click') and element.onclick don't work on iOS. Do not ask for the code, because there is nothing even to show - ordinary listeners. I tried to add cursor: pointer in styles - it doesn't work. It's just that nothing happens when you "tap" your finger on the element.
PS: I don't use jQuery, only Vanilla JS. Tried touchevent and touchstart - don't work either. I tried to write onclick="" element - also does not work
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