0

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!!!

Fiddle Here

<div class="task">
<span class="task-time">
  Tomorrow
</span>
  <div class="task-name">
    <span>
      Buy milk
    </span>
  </div>
</div>

Sorry for my bad English I really don't know how to correctly ask this question I hope you will understand!!!

Eldelshell
  • 6,683
  • 7
  • 44
  • 63
Guntar Wi
  • 45
  • 1
  • 6

0 Answers0