How to set height , width to image using jquery -


Is there a way to set the height and width of the image using jquery? The following is my code

  var img = new image (); // 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});  

Thanks.

You can call the senders, and:

  var img = New image (); // 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). Wide (100);  

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -