I am in a situation that; need to calculate image's original width
and heigth
values when one of them defined 0 on css. I can't change CSS with jQuery, need to solve like this:
CSS:
img { width:0px; }
jQuery:
var imgHeight = $('img').height();
alert(imgHeight);//which returning 0 ofcourse
I hope this is possible with less code, thanks,