Is it possible to recognize touch events on the iPad\'s Safari browser using jQuery?
I used mouseOver and mouseOut events in a web application. Are there any simila
Core jQuery doesn't have anything special for touch events, but you can easily build your own using the following events
For example, the touchmove
document.addEventListener('touchmove', function(e) {
e.preventDefault();
var touch = e.touches[0];
alert(touch.pageX + " - " + touch.pageY);
}, false);
This works in most WebKit based browsers (incl. Android).
Here is some good documentation.
If you're using jQuery 1.7+ it's even simpler than all these other answers.
$('#whatever').on({ 'touchstart' : function(){ /* do something... */ } });