title: Check if elements are part of wrapper
body: <p>I can't figure out how to check if I click on one of elements inside the wrapper then that element is really child of the wrapper!!!
  I used event.target to detect where I'm clicking. I need to understand how to traverse through DOM!!!</p>
  
  <p><a href="https://jsfiddle.net/Guntarwi/mxfja5h5/1/" rel="nofollow">Fiddle Here</a>
  <div class="snippet" data-lang="js" data-hide="false" data-console="true">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="task"&gt;
  &lt;span class="task-time"&gt;
    Tomorrow
  &lt;/span&gt;
    &lt;div class="task-name"&gt;
      &lt;span&gt;
        Buy milk
      &lt;/span&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Sorry for my bad English I really don't know how to correctly ask this question I hope you will understand!!!</p>