showing results for - "jquery click on parent but not child"
Julia
24 Aug 2018
1$(document).ready(function(){
2    $(".header").click(function(){
3        $(this).children(".children").toggle();
4    });
5   $(".header a").click(function(e) {
6        e.stopPropagation();
7   });
8});
queries leading to this page
trigger jquery event on a parent but not a childjquery child with in parent on click eventjquery prevent click on parent elementjquery click on child but not parentjs how to click on button parent and not chilfjquery click on div but not childparent click trigger childclick parent not child jqueryjavascript dont trigger click if child targetedjquery on click parent or childrejquery on click no parentclass trigger click stopjquery click parent but not childregister click on parent div not the child div inside it jquerthow to stop child getting triggered from parent htmljquery click event unless child is clickedclick child not parentjquery parent div on click but not child divjquery click event is not on parent but childjquery click on element but not parentstop parent click when child click event jqueryjquery on click not childjquery onclick on parent but not childclicking insde div trigger parent event tooclick listener jquery not on childjquery on click parent except onc 3de childjquery click parent childjquery click on parent but not childclick in parent and child jqueryjs prevent triiger on click when clicled in childjquery prevent from calling all parentsjquery click event only on child not parentjquery click child element not parentclick on child element consider parent click in jqueryjquery click only child not parentjquery click only parent not childjquery on click parent but not childjquery click on child and get parent idif click child element not parent jquerytrigger click on child element jquery not parent on click activating when childtriggering event on parentchild trigger parent jqueryjquery onclick on child but get id of parentjquery click element not childjquery on click parent not childclick on child not parentjquery click element but not childjquery click parent and childjs prevent inner element click trigger parentstop parent event jqueryjquery click on parent or childrenclick on parent not child jqueryjquery click child to parent elementjquery click on child not parentjquery click on div close not childtrigger click without parent jquerydisable parent click event when child is clickedjquery click only chaildjquery click parent div not childon child click click parent jqueryjquery onclick parent or childjquery click on parent but not child