How to return the order that an item appears in a list in jQuery?
<p>I am trying to find out how to find the position that an item appears in a list. For example:</p>

<pre><code>&lt;ul&gt;
  &lt;li&gt;item 1&lt;/li&gt;
  &lt;li&gt;item 2&lt;/li&gt;
  &lt;li&gt;item 3&lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>If I clicked on item 2, I would want to receive '2'. Is this possible?</p>
