How to get the eq() of $(this)?
<p>Here's my code:</p>

<pre><code>$('div.menu &gt; ul &gt; li &gt; a').click(function(e) {

    alert($(this).eq());
    e.preventDefault();

});

&lt;div class="menu"&gt;

    &lt;ul&gt;
        &lt;li&gt;&lt;a href=""&gt;Animals&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=""&gt;Cars&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=""&gt;Sports&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;

&lt;/div&gt;&lt;!-- menu --&gt;
</code></pre>

<p>My attempt alerts an object object error. If should instead return the numeric place of the link being clicked. For example if you click animals it should alert 1 (not sure if the eq count starts at 0 like arrays in which case it should alert that) and if you click sports it should alert 3 and so on...</p>
