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()
you have to use find()
$('body').find('#myimg').width();
or
$('body').find('#myimg').attr("width");
becouse you have appended it after the DOM was loaded