Is there a way to list all elements that contain two or more events of the same kind?
I put a little example at JsBin:
http://jsbin.com/alafo3/edit
In this example I want a list that contains the <p> with ID=”hallo2″.
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 can also access the
eventskey of the attached data, e.g.returns
2.Update:
You could for example extend jQuery this way:
And use it like:
which will select all elements that have multiple handlers for the click event.