title: Need to get height attribute value from an ifram and set parent element to contain it
body: <p>I'm going to be receiving some dynamically generated iframe content at a later date and trying to create a template that will comfortably fit the iframe no matter what height. So I want to write a jquery script that reads the value of the height attribute in the iframe so I can set the parent element to a corresponding size.</p>
  
  <p>What I'm not sure how to do is access the height attribute in the iframe ... I'm assuming the easiest thing to do is run the script from the parent element to get the iframe height and then set it's own height . I also expect the iframes to be same domain so that won't be a problem.</p>
  
  <pre><code>&lt;div class="parent_element" style=""&gt;
  &lt;!-- .parent_element {height: } should be set to 400px --&gt;
  &lt;iframe src="" height="400"&gt;&lt;/iframe&gt;
  &lt;/div
  </code></pre>
  
  <p>Can anyone point me in the right direction? Thanks.</p>