Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2329 Weergaven

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
Annuleer