jQuery - How to get attribute of an element when using the 'click' event
<p>I'm using jQuery to get a click on an 'a' element. I have a list of those links where each one has a class which by him I'm capturing the click.</p>

<p>I would like to know which of the links has been clicked (I have an attribute 'setid' for each link) and also get the point where the mouse has been clicked.</p>

<p>How could this be accomplished?</p>

<p>example of the code:</p>

<pre><code>&lt;a href="#" class="newItem" setid="28"&gt;click me&lt;/a&gt;

$('.newItem').click(function (e) {
    alert(e.attr('setid'));
});
</code></pre>

<p>EDIT:
OK, so to get the position I would use e.pageX</p>
