SyntaxFix
Write A Post
Hire A Developer
Questions
As simple as it can be
Use $(this) here too
$(this)
$(document).on("click",".appDetails", function () { var clickedBtnID = $(this).attr('id'); // or var clickedBtnID = this.id alert('you clicked on button #' + clickedBtnID); });