jQuery tap is a jQuery plugin that creates a click alternative for touch enabled browsers.jQuery.tap listens for both touch and mouse events and will use the first event that is fired to detect a tap.If the browser does not support touch events, then the regular mouse events to create a tap event. No need for if/else statements, jQuery.tap will do that for you.
Events Plugins