How to undelegate this, and how to re-delegate (on/off)… Without affect the other event handlers in ‘a’.
$(document).ready( function() {
$('document').delegate( 'a', 'click' function(){return false;} );
});
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Do something like this, I’m using the
click.myEventto create my own namespace within the click event, so this way it will only be.myEventevents that get generated and removed.Deletate
Undelegate: