Possible Duplicate:
jQuery: How to determine which <li> tag was clicked?
I have a div with images inside it and I want to know which image is clicked, whether it’s the 1st, 2nd or 3rd.
<div class="imageholder">
<span><img src="image1"></span>
<span><img src="image2"></span>
<span><img src="image3"></span>
</div>
How can we get this in jQuery?
http://jsfiddle.net/N3dGB/