how to add units?
<p>How to add height , width unit to image using jquery , like <code>pixel, %</code> ect</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 
}).height(100).width(100); 
</code></pre>
