benmajor / jQuery-Touch-Events

A collection of mobile event plugins for jQuery.
MIT License
699 stars 225 forks source link

Small problems with 'taphold' event #146

Closed ghost closed 6 years ago

ghost commented 6 years ago

Hi, I tried your library, and this is very useful. But like can I do to use the 'taphold' or other event on dynamically created elements? I use the following code $(document).on("taphold", ("#div"), function(){...}); but in browser's console I have one error, related to code line n. 250, in refer to 'taphold'. Thanks a lot.

ghost commented 6 years ago

ok, i've read this your reply, and now I'm understand can I do. If you want, you can close thi issue. Still Thanks!