Dynamically created Div is returning zero height
<pre><code>//Test function
function createDiv()
{
    textContainer = $(document.createElement("div"));
    $(textContainer[0]).html(msg);
    var ctrlHeight = $(textContainer).height();
    textContainer.show();
}
</code></pre>

<p>If I check the height of the div, it returns 0 but if i check it after calling <code>show</code>, it returns the height.  Why?</p>
