Answers for "check whether click event is clicked or not in jqery"

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 whether click event is clicked or not in jqery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language