if i have an image element where i'm not set height and width, like this
<img id="img" src="image.jpg" />
and then when i try to get
img_height = $("#img").attr("height");
it returns 0
.
how can i get the size of image in google chrome.
Thanks
Update:
height = $("#img").height();
doesn't work too...