How to obtain the functions associated to an event of an element with jquery?

0

Good morning, the query is simple but I can not get to a more direct method to get the functions associated with an element,

Suppose we have a button label and the click event we associate the greeting function, it would be something like this:

$('button').on('click', Saludo);

Now suppose that the click event of that button is also associated with two more functions, Farewell and Arrival.

 $('button').on('click', Despedida);
 $('button').on('click', Llegada);

But these associations are dynamic, how would you check to see if, for example, the Dismissal function is associated or not? I was thinking of some kind of conditional but I do not know how to get it if the Dismissal function is applied to this button or not ....

    
asked by Susje 28.09.2017 в 17:15
source

0 answers