Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2301 Prikazi

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
Opusti