js prevent triiger on click when clicled in child code example
Example: jquery click on parent but not child
$(document).ready(function(){
$(".header").click(function(){
$(this).children(".children").toggle();
});
$(".header a").click(function(e) {
e.stopPropagation();
});
});