Let's imagine I have the following line of code in two different JS files:
$("select#selectorId").change(function() { alert("fake function"); });
Every time I bind the function to the change event of that select control I want to be able to log on the console what function is the control receiving and to what event is it being bound to.
Anyone knows if this is possible (almost everything is right?) and how to do it?