jquery get element by id value onclick function 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);
});