Get height of image inside a hidden div
<p>i want to to get the height/width of an image inside a hidden div-containter, but <code>.height()</code> and <code>.width()</code> both returns 0 (like expected).</p>

<pre><code>
$('body').append('&lt;div id="init"&gt;&lt;img id="myimg" src="someimage.png" /&gt;&lt;/div&gt;');
$('#init').hide();
$('#myimg').height(); // == 0
$('#myimg').width(); // == 0
</code></pre>

<p>How can i get the correct height/width of the image? I need it to make some decisions :-)</p>

<p>Best regards,
Biggie</p>
