Reputation: 19035
I'm trying to get the height of an absolute div, but am running into a problem. jQuery's .height() doesn't retrieve the correct hei
Thanks for any help!
Upvotes: 0
Views: 654
Reputation: 7407
Is this what you want? http://jsfiddle.net/Y9Upp/7/ your selector should be #box
instead of #boxheight
;)
Upvotes: 0
Reputation: 94101
You're grabbing the wrong element...
$('#boxHeight div').first().html($('#box').height());
----^----
Upvotes: 1