get id of button pressed jqeur code example
Example: how to get the id of button clicked in jquery
$("button").click(function() {
alert(this.id); // or alert($(this).attr('id'));
});
$("button").click(function() {
alert(this.id); // or alert($(this).attr('id'));
});