get a value from button in js 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);
});