get clicked element id jquery code example
Example 1: how to get the id of button clicked in jquery
$("button").click(function() {
alert(this.id); // or alert($(this).attr('id'));
});
Example 2: jquery on click get element
$(document).on("click",".appDetails", function () {
var clickedBtnID = $(this).attr('id'); // or var clickedBtnID = this.id
alert('you clicked on button #' + clickedBtnID);
});