Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

click on child prevent click on parent

// Use `.stopPropagation();`, even if you're not using JQuery
$("#clickable a").click(function(e) {
   e.stopPropagation();
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #click #child #prevent #click #parent
ADD COMMENT
Topic
Name
1+8 =