I want to remove ALL click events from a certain DOM element. How? There is removeEventListener, but that requires the attached function.
Is there a way to remove ALL attached events of one type (or just ALL, that’s fine too)?
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.
You didn’t mention whether or not you were using a library to assist in DOM manipulation, but if you’re using jQuery, its as simple as $(domelement).unbind(‘click’);
Documented here: http://api.jquery.com/unbind/