jQuery: how to get height of image div in dialog window if that height changes after image load from server?
<p>Here is html code:</p>

<pre><code>&lt;div id="image-div"&gt;
    &lt;img id="image" src="" /&gt;
&lt;/div&gt;
</code></pre>

<p>And js code:</p>

<pre><code># on dialog open
$.ajax({
    url: "/ajax/img",
    success: function(data){
        $("#image").prop("src", data);
    }
});
</code></pre>

<p>So, at the beginning the height of <code>#image-div</code> = 0 and it changes only after real image loaded from server (after success ajax request). How to get new height of that div?</p>

<p>Thanks!</p>
