recognize which span tag triggered javascript function in div
<p>I have a div html element that has a click event set on it inline (not the way I want to do it but legacy code). See here</p>

<pre><code>&lt;div class="myDiv" onclick="triggerJavascript();" id="myDiv"&gt;

&lt;span id="text1"&gt;Text 1&lt;span&gt;
&lt;span id="text2"&gt;Text 2&lt;span&gt;
&lt;span id="text3"&gt;Text 3&lt;span&gt;
&lt;span id="text4"&gt;Text 4&lt;span&gt;
&lt;span id="text5"&gt;Text 5&lt;span&gt;
</code></pre>

<p></p>

<p>What I want to do is recognize which span tag the click event originates from test5, then dont carry out the logic in triggerJavascript function, otherwise complete logic in triggerJavascript.</p>

<p>How can I set this up? I am working with jquery.</p>
