function first(a){ if (a == 'a'){ return false; } } function second(){ return 'a'; } $('.c').click(first).click(second);
How to send message to other chained events? Or stop others from one?
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.
To stop next clicks from happening, you can use the stopImmediatePropagation method:
To send messages among callbacks, I don’t know any other way than using external variables.
Actually, this is almost a dupe of jQuery Multiple Event Handlers – How to Cancel?…