Get position of selected elements, not index of element in DOM
<pre><code>&lt;div&gt;
  &lt;h3&gt;Heading one&lt;/h3&gt;
  &lt;h3&gt;Heading two&lt;/h3&gt;
  &lt;h4&gt;heading caption&lt;/h4&gt;
  &lt;h3&gt;Heading three&lt;/h3&gt;
&lt;/div&gt;​
</code></pre>

<p>I want to get the position of the element within the jQuery selection, rather than it's index in the DOM.</p>

<p>At the moment, if I <code>alert($("h3").eq(2).index());</code> I'll get '3' - I want '2'.</p>

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