stop the event from continuing


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



Copy this code and paste it in your HTML
  1. $('#theLink').click(function(evt) {
  2. // do something
  3. // stop the event from continuing
  4. evt.preventDefault();
  5. evt.stopPropagation();
  6. });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.