know which button is clicket and take value of that button jquery code example
Example: how to get value of button that click on it jquery
$("button").click(function() {
var button = $(this).val();
alert(button);
});
$("button").click(function() {
var button = $(this).val();
alert(button);
});