Jquery - Filter elements by class name, and get the index num of thier parent is achivable?
<p>In my HTML page, i have nearly 4 UL's, all have the 'li', while the user click on each of the 'li', i am adding a class name as 'active'. later equalant of it's index number to it's parent i am adding a icon in the icons box (separate boxes).</p>

<p>so, each click i need to update the index number as well. is tehre any way to achive this?</p>

<p>i used this, not giving wrong results:</p>

<pre><code>var lstNum = $('.active').parent().index($(this));
</code></pre>

<p>i am not getting the value from each of  it's parent.</p>

<p><a href="http://jsfiddle.net/haHYu/" rel="nofollow">jsfiddle</a></p>
