jquery listen to specific function code example
Example: on click jquery
$( "#target" ).click(function() {
alert( "Handler for .click() called." );
});
$( "#target" ).click(function() {
alert( "Handler for .click() called." );
});