index of element in regard to elements of same type?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/11423357/get-position-of-selected-elements-not-index-of-element-in-dom">Get position of selected elements, not index of element in DOM</a>  </p>
</blockquote>



<p>Using JQuery, what is the optimal way to get the index of an element in regard to other siblings of the same type, disregarding siblings of other types?</p>

<pre><code>&lt;span/&gt;
&lt;span/&gt;
&lt;div/&gt;
&lt;span/&gt; &lt;-- index of this guy in regard to just span tags? (answer: 2)
</code></pre>
