get the click source in jquery code example
Example 1: jquery event source
//target is the element that triggered the event
let source1 = event.target;
//currentTarget is the element that the event listener is attached to.
let source2 = event.currentTarget;
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);
});