What is the difference between the click and tap events?

Tiger picture Tiger · Sep 14, 2012 · Viewed 71.6k times · Source

I am developing an app that runs on Android/iOS and desktop computers.

Should I use the click or the tap event?

What are the differences between them?

Will the 'tap' work on desktop? if not, (and I have to use click) am I missing any advantages that the tap has over the click?

Answer

tuned picture tuned · Jun 30, 2013

You can use .on() to bind a function to multiple events:

$('#element').on('click tap', function() {
    ...
});

Thanks to @bergie3000 for pointing to this