I\'m trying to support both mouse and touch events for a div that I want to show and hide. My mouse events work well, but I\'m not sure of how to get this to work on a touch-bas
This is enough: JsFiddle
$searchTrigger.on('click', function(e) { $searchBox.toggle(); e.preventDefault(); });
it works for screen and touch devices.