Get the number of element or id when click?
<p>I wonder if it's possible to get the number of a <code>&lt;a&gt;</code> tag when you click on it by using $this? Lets say I have a list of links and I want to get the number in the order it has inbetwen a div with a class name someLinks </p>

<pre><code>&lt;div class="someLinks"&gt;
 ...="#" id="1"&gt;some text or an image&lt;/a&gt;
 ...="#" id="2"&gt;some text or an image&lt;/a&gt;
 ...="#" id="3"&gt;some text or an image&lt;/a&gt;
&lt;/div&gt;
</code></pre>

<p>(sorry but I could not include a tags)</p>

<p>Perhaps it could be done with some code like this <code>$(".someLinks:eq(????</code> 
Or if there is some way to get the number of the ID when click on the <code>&lt;a&gt;</code> tag by using $this and perhaps attr?</p>

<p>Preciate some help! I'm new to jQuery so I want to keep the code simple. Thanks!</p>
