How to find the exact same element as the one on the page in an iframe
<p>So I need to find an element in an iframe that is the exact same element of that that is in the webpage (the iframe is of the same page). I need to figure out what the index is of the elements without id's with jquery so I can get the same element in an iframe. </p>

<p>Edit: How can I find the index of an element?</p>

<p>i.e. for this html: </p>

<pre><code>&lt;div&gt;
    &lt;a&gt;1&lt;/a&gt;
    &lt;a&gt;2&lt;/a&gt;
    &lt;a&gt;3&lt;/a&gt;
    &lt;a id="someA"&gt;4&lt;/a&gt;
    &lt;a&gt;5&lt;/a&gt;
    &lt;a&gt;6&lt;/a&gt;
    &lt;a&gt;7&lt;/a&gt;
&lt;/div&gt;
</code></pre>

<p>How would I find the index (so I can it by doing <code>$('a')[index]</code>) of one of the random anchor elements from it's jQuery object? </p>

<p>(By doing <code>$('#someA').siblings()[Math.floor(Math.random()*6)].getIndex()</code>)</p>

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