Answers for "javascript catch all click events"

0

javascript catch all click events

$(document).click(function(event){
  $(event.target).hasClass("clickable").each(function(){
    // "this" is your "clickable" clicked
  });
});
Posted by: Guest on September-02-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language