Variable Scope outside jQuery function
<p>Hello I am trying to identify the height of a  but I am not able to get it outside the function. here is my code</p>

<pre><code>jQuery.noConflict();

        (function($) { 
            $(function() {
                $tmp_cont = $('&lt;div&gt;&lt;/div&gt;');
                $tmp_cont.html($content);
                $tmp_cont.hide();
                $('body').append($tmp_cont);

                var $height = $tmp_cont.height();

                alert ($height);

            });
        })(jQuery);

alert ($height);
</code></pre>

<p>the first alert function works fine but the second throws $height undefined. How shall I retain the value of height ?</p>

<p>Thanks</p>
