get value from clicked element jquery code example
Example 1: how to get value of button that click on it jquery
$("button").click(function() {
var button = $(this).val();
alert(button);
});
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);
});