Answers for "how to find what is clicked using jquery"

1

detect button click jquery

$(".btn").click(function(){
  var clk = $(this).attr("id");
});
Posted by: Guest on June-27-2020
3

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 "how to find what is clicked using jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language