Se rendre au contenu
Menu
Cette question a été signalée
2291 Vues

I'm trying to copy an event listener of an HTML element to another element. But the first step is to list the listeners of an element.

I found some old methods but they all are not working.

Such as: var events = $("#the_link").data('events');

Some say it is changed in modern versions to be: $._data( $('.element')[0], 'events' );

Also, these methods are not documented on the JQuery website.

anyone can help?

Avatar
Ignorer