Answers for "jquery check if element is clicked"

1

detect button click jquery

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

jquery if class clicked

$('.yourClass').click(function(e){
    //do something here
});
Posted by: Guest on December-20-2020

Code answers related to "jquery check if element is clicked"

Code answers related to "Javascript"

Browse Popular Code Answers by Language