How to get on which html tag i am clicking using jquery?
<p>I working on a web page which has a similar structure like this:</p>

<pre><code>&lt;div id="mydata"&gt;
&lt;img src="" &gt;
&lt;img src="" &gt;
&lt;img src="" &gt;
&lt;video src=""&gt;&lt;/video&gt;
&lt;video src=""&gt;&lt;/video&gt;
&lt;img src="" &gt;
&lt;img src="" &gt;
&lt;/div&gt;
</code></pre>

<p>so it's a combination of video &amp; images inside mydata div.</p>

<p>Now what i want to do is:</p>

<p>if my user click on image then a alert comes and shows "it's an image" and if click on video then alert shows "it's an video"</p>

<p>please tell me how can i do this using jquery?</p>
