0
rated 0 times
[
7]
[
7]
/ answers: 1 / hits: 37876
/ 15 Years ago, mon, december 7, 2009, 12:00:00
I found the way to check if event exists on element. But it's not work on the events which is not delegated by jQuery:
When I try,
$("a").data("events");
for this.
<a href="#" onClick="alert('Hello, World!')" />
It returned undefined.
Is there any way to check if onClick
exists on elements with jQuery?
More From » jquery