How to set height , width to image using jquery
<p>Is there any way to set height and width of an image using jquery?
The following is my code </p>

<pre><code>var img = new Image();  
 // Create image
$(img).load(function(){                 
    imgdiv.append(this);
}).error(function () {  
    $('#adsloder').remove();
}).attr({ 
    id: val.ADV_ID,  
    src: val.ADV_SRC,
    title: val.ADV_TITLE,
    alt: val.ADV_ALT
});
</code></pre>

<p>Thanks.</p>
