I would like to know how to list a list all events attached to a particular DOM element which had been attached using live()
?
try following code:
function findEvents(element) {
var events = element.data('events');
if (events !== undefined)
return events;
events = $.data(element, 'events');
if (events !== undefined)
return events;
events = $._data(element, 'events');
if (events !== undefined)
return events;
events = $._data(element[0], 'events');
if (events !== undefined)
return events;
return undefined;
}
we're trying to use different ways cause it depends on jquery version. JSFiddle sample
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With