Your Ad Here

Posted By

mdavidwalker on 07/13/10


Tagged

click bind double-click


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

wirenaught


Jquery Bind


 / Published in: jQuery
 

Instead of using event helpers like click and dblclick

  1. var clickMe = function() {
  2. console.log('Hello World');
  3. };
  4.  
  5. $('p.clickMe').bind('click dblclick', clickMe);
  6.  
  7. $('p.clickMe').unbind('click dblclick', clickMe);

Report this snippet  

You need to login to post a comment.