Answers for "check which button is clicked jquery"

1

detect button click jquery

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

jquery if element is clicked

$("#element").click(function(){
    var $this = $(this);
    if($this.data('clicked')) {
        func(some, other, parameters);
    }
    else {
        $this.data('clicked', true);
        func(some, parameter);
    }
});
Posted by: Guest on August-18-2021

Code answers related to "check which button is clicked jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language