Posted By

vladikoff on 08/27/09


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

vladikoff


jquery click and hold


 / Published in: jQuery
 

URL: clickandhold

  1. var intervalId;
  2.  
  3. $(el).mousedown(function() {
  4. intervalId = setInterval(function, interval);
  5. }).mouseup(function() {
  6. clearInterval(intervalId);
  7. });

Report this snippet  

You need to login to post a comment.