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

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -