Setting Attribute to an Image in jQuery...

Kumarkrishna184
Posted by Kumarkrishna184 under jQuery category on | Points: 40 | Views : 1259
$(document).ready(function(){
$("#img1").attr("height",300);
});

or

$(document).ready(function(){
$("#img1").prop("height",300);
});

Comments or Responses

Posted by: Rajnilari2015 on: 12/12/2015 Level:Platinum | Status: [Member] [Microsoft_MVP] [MVP] | Points: 10
Ok thanks

Login to post response