loading and replacing the image in jquery
<p>I have low resolution image which is loaded first,once it is loaded i need to replace it with a high resolution image.</p>

<p>I try to do so in html img tag but in throws error saying </p>

<pre><code>Uncaught TypeError: Cannot read property 'width' of undefined
</code></pre>
