Get Imagesize in jQuery
<p>I want to get the imagesize in jquery, I have this code.  It works to the point of </p>

<pre><code>alert (v);
</code></pre>

<p>I wonder what is wrong with the rest when <strong>v</strong> actually contains a value.</p>

<pre><code> var v = $('#xxx input').val();
    alert (v);
    var newImg = new Image();
    newImg.src = v;
    var height = newImg.height;
    var width = newImg.width;
    alert ('The image size is '+width+'*'+height);
</code></pre>

<p>Thanks
Jean</p>
