How to get the index of list Items on click of li using jquery
<p>Is there a way through which I can get the index of list Items on click of li using javascript/jquery</p>

<pre><code>&lt;ul&gt;&lt;li&gt;item1&lt;/li&gt;&lt;li&gt;item2&lt;/li&gt;&lt;li&gt;item3&lt;/li&gt;&lt;/ul&gt;
</code></pre>
