we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "click on child prevent click on parent"
Emily
22 Jul 2017
1// Use `.stopPropagation();`, even if you're not using JQuery
2$("#clickable a").click(function(e) {
3   e.stopPropagation();
4});