Answers for "jquery on click get element"

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);
});
Posted by: Guest on September-07-2020

Code answers related to "jquery on click get element"

Code answers related to "Javascript"

Browse Popular Code Answers by Language