Can you extract the nth-child value in JQuery?
<p>I have a list of an indeterminate number of child elements:</p>

<pre><code>&lt;ul&gt;
    &lt;li ID="alpha"&gt;&lt;/li&gt;
    &lt;li ID="bravo"&gt;&lt;/li&gt;
    ...
    &lt;li ID="hotel"&gt;&lt;/li&gt;
    ...
&lt;/ul&gt;
</code></pre>

<p>If I were to click on any of these elements, would it be possible to find out which child number they are in the list, and pass that value to a variable?</p>
