jQuery current element index if has class
<p>so my code generates like this (when click a it adds active class to current):</p>

<pre><code>&lt;div&gt;

&lt;a href="#"&gt;&lt;/a&gt;
&lt;a href="#"&gt;&lt;/a&gt;
&lt;a href="#" class="active"&gt;&lt;/a&gt;
&lt;a href="#"&gt;&lt;/a&gt;

... 

&lt;/div&gt;
</code></pre>

<p>how can I grab active a tags index?</p>
