Posted By

pavlovt on 07/14/11


Tagged

js


Versions (?)

stop the event from continuing


 / Published in: jQuery
 

  1. $('#theLink').click(function(evt) {
  2. // do something
  3. // stop the event from continuing
  4. evt.preventDefault();
  5. evt.stopPropagation();
  6. });

Report this snippet  

You need to login to post a comment.