javascript - trigger.io - hide a html element on touch/tap event -
the problem seems simple enough yet not working.
what want div hide on tap. using jquery if know have in more native manner id love that!
i have tried using did not work
$(".event_image").on('tap', function(e) { $(this).hide() });
anyone got ideas?
jquery doesn't have touch/tap events, can build own using these:
touchstart touchmove touchend touchcancel
more information available here.
or can use plugin such hammer.js supports touch events & more!
Comments
Post a Comment