Javascript: Find out which element was clicked without attaching any eventlistener to it?
<p>I am confused on finding an approach to resolve this issue. Consider below html</p>

<pre><code>&lt;body&gt;
  &lt;div id="parent" onclick="myFunc"&gt;
     &lt;div id="child-a"&gt;&lt;/div&gt;
     &lt;div id="child-b"&gt;&lt;/div&gt;
     &lt;div id="child-c"&gt;&lt;/div&gt;
     &lt;div id="child-d"&gt;&lt;/div&gt;
     &lt;div id="child-e"&gt;&lt;/div&gt;  
  &lt;/div&gt;
&lt;/body&gt;
</code></pre>

<p>Event listener is attached to the parent element. If a user clicks on lets say 'child-c', is there any way to find out using "myFunc" that which div was clicked? In this case 'child-c'. Any possible solution using pure JS or jQuery?</p>

<p>Let me know if more explanation is required. Thank you for helping.</p>

<p>-Nishant</p>
