📜  jquery on click get element - Javascript代码示例

📅  最后修改于: 2022-03-11 15:02:38.900000             🧑  作者: Mango

代码示例1
$(document).on("click",".appDetails", function () {
   var clickedBtnID = $(this).attr('id'); // or var clickedBtnID = this.id
   alert('you clicked on button #' + clickedBtnID);
});