jquery click and hold


/ Published in: jQuery
Save to your folder(s)



Copy this code and paste it in your HTML
  1. var intervalId;
  2.  
  3. $(el).mousedown(function() {
  4. intervalId = setInterval(function, interval);
  5. }).mouseup(function() {
  6. clearInterval(intervalId);
  7. });

URL: clickandhold

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.