Is there any way to set height and width of an image using jquery? The following is my code
var img = new Image(); // Create image $(img).load(function(){
$(".img1").css('height','10'); $(".img1").css('width','10');
OR
$(".img1").attr('height','10'); $(".img1").attr('width','10');