title: jQuery: get height of child element when parent height is 0px
body: <p>I have a div containing text which is inside another div displayed only under certain circumstances. The HTML for this is simple and looks like:</p>
  
  <pre><code>&lt;div id='parent'&gt;
    &lt;div id='child'&gt;
      Some text inside child div
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>The styling would look like:</p>
  
  <pre><code>#parent{ display:none; height:0px; }
  </code></pre>
  
  <p>Using jQuery I would like to obtain the height of the child as I would if the div was outside the parent.</p>
  
  <p>The following javascript returns 0, I wish for something around maybe 15.</p>
  
  <pre><code>var child_height = $('#child').height();
  alert(child_height);
  </code></pre>