$('a').on('touchstart', function(event) { return $(this).addClass('tapped'); }); $('a').on('touchend', function() { return $(this).removeClass('tapped'); });