i want to to get the height/width of an image inside a hidden div-containter, but .height() and .width() both returns 0 (like expected).
.height()
.width()
Its because the image has not loaded yet.....
$('body').append(''); $('#init').hide(); $('#myimg').bind("load",function(){ alert(this.height) //works })
heres a test: http://jsfiddle.net/WMpSy/