title: Getting element within Frame using jQuery
body: <p>I am trying to access an element which is inside of a frame but haven't had any luck getting to it so far.  I have read through a lot of examples here on stackoverflow and in jQuery's documentation but all the examples I've seen have been in reference to iFrames which behave differently than traditional frames.  My page structure is as shown below with actual contents removed:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;&lt;/head&gt;
  &lt;frameset&gt;
  &lt;frame name="Menu"&gt;&lt;html&gt;&lt;body&gt;
      &lt;!--Menu contents--&gt;
  &lt;/body&gt;&lt;/html&gt;&lt;/frame&gt;
  
  &lt;frameset&gt;
  &lt;frame name="SettingsTree"&gt;&lt;html&gt;&lt;body&gt;
      &lt;!--Setting options--&gt;
  &lt;/body&gt;&lt;/html&gt;&lt;/frame&gt;
  &lt;frame name="SettingsGrid" id="SettingsGrid"&gt;&lt;html&gt;&lt;body&gt;
      &lt;div id="findthis"&gt;&lt;/div&gt;
      &lt;!--Setting grid values--&gt;
  &lt;/body&gt;&lt;/html&gt;&lt;/frame&gt;
  &lt;/frameset&gt;
  
  &lt;/frameset&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The way to get contents of "findthis" within an iFrame would be</p>
  
  <pre><code>$('#SettingsGrid').contents().find('#findthis')
  </code></pre>
  
  <p>however this doesn't return anything.  The $('#SettingsGrid') object exists with a length of 1 and all of the html I would expect it to have.  However when I call .contents() on that object it returns nothing.  I don't know if this is because it hasn't been properly loaded into the DOM or if there is some other issue.</p>