On a page I have displayed 100 images, which have the width and height attribute changed. Image id is in a loop.
How do I get the original image size, inside this
Try this one:
$("") .attr("src", element.attr("src")) .load(function(){ MG.originalSize[0] = this.width; MG.originalSize[1] = this.height;
});