Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2289 Ansichten

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
Verwerfen