You need to use event.stopPropagation()
$('#childDiv').click(function(event){
event.stopPropagation();
alert(event.target.id);
});
Description: Prevents the event from bubbling up the DOM tree,
preventing any parent handlers from being notified of the event.