Answers for "jquery click on parent but not child"

1

jquery click on parent but not child

$(document).ready(function(){
    $(".header").click(function(){
        $(this).children(".children").toggle();
    });
   $(".header a").click(function(e) {
        e.stopPropagation();
   });
});
Posted by: Guest on April-28-2020

Code answers related to "jquery click on parent but not child"

Code answers related to "Javascript"

Browse Popular Code Answers by Language