title: Detect if div is clicked including childs jquery
body: <p>I need to check if a div and its child is clicked</p>
  
  <pre><code>$('div').click(function(e){
       if(e.target.id  == 'test')
         alert(e.target.id);
  });
  </code></pre>
  
  <p>The div I need to test is #test in my html code, this code is working but if I click on child element it does nothing</p>
  
  <p>How can I have target + children in my code ?</p>