Find the clicked li number
<p>I have a standard list...</p>

<pre><code>        &lt;ul&gt;
            &lt;li&gt;&lt;a href="#"&gt;blah 1&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="#"&gt;blah 2&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="#"&gt;blah 3&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="#"&gt;blah 4&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
</code></pre>

<p>And my jQuery:</p>

<pre><code>$('ul li a').live('click', function() {
    var parent = $(this).parent('li');
});
</code></pre>

<p>What I want to find out is the parent li's position in the list of the clicked link e.g. clicking on blah 3 would give me 2, blah 4 would give 3 etc.</p>

<p>Any ideas?</p>
