Answers for "jquery check if button 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 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 "jquery check if button is clicked"

Code answers related to "Javascript"

Browse Popular Code Answers by Language