jQuery index of item in selector
<p>this is pseudo code </p>

<pre><code>  var index_of_myid = $('.selection').indexOf($('#myid));
</code></pre>

<p>not sure if this is right is this possible if you can understand what I'm trying to do</p>

<p><strong>EDIT</strong></p>

<pre><code> &lt;div&gt;
    &lt;div class="selector"&gt;&lt;/div&gt;
 &lt;/div&gt;
 &lt;div&gt;
    &lt;div class="selector"&gt;&lt;/div&gt;
 &lt;/div&gt;
 &lt;div&gt;
    &lt;div class="selector" id="myid"&gt;&lt;/div&gt;
 &lt;/div&gt;
 &lt;div&gt;
    &lt;div class="selector" id="myid2"&gt;&lt;/div&gt;
 &lt;/div&gt;
</code></pre>

<p>I just need to know what number selector is the myid</p>
