I have this markup (simplified):
<ul class="targets">
<li><a href="javascript:void(0);" class="info">A</a></li>
<li><a href="javascript:void(0);" class="info">B</a></li>
<li><a href="javascript:void(0);" class="info">C</a></li>
</ul>
And this script (simplified):
$('.targets').click(function(e) {
alert(e.target); // alerts "javascript:void(0);"
});
What I really want is the clicked anchor object, not the target for the anchor.
If this is possible, how do I do it?
It must be anchors in the list, but the function must handle clicks on other dom elements as well.