Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript catch all click events

$(document).click(function(event){
  $(event.target).hasClass("clickable").each(function(){
    // "this" is your "clickable" clicked
  });
});
 
PREVIOUS NEXT
Tagged: #javascript #catch #click #events
ADD COMMENT
Topic
Name
3+6 =