jquery function when button click code example
Example: jquery click function
$( "#target" ).click(function() {
alert( "Handler for .click() called." );
});
$( "#target" ).click(function() {
alert( "Handler for .click() called." );
});