stop parent click when child click event jquery 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();
});
});