jQuery: Get height of hidden element in jQuery 1.4.2
Posted
by mkoryak
on Stack Overflow
See other posts from Stack Overflow
or by mkoryak
Published on 2010-02-27T00:52:43Z
Indexed on
2010/03/30
21:33 UTC
Read the original article
Hit count: 434
I need to get height of an element that is within a div that is hidden. Right now I show the div, get the height, and hide the parent div. This seems a bit silly. Is there a better way?
I'm using jQuery 1.4.2:
$select.show();
optionHeight = $firstOption.height(); //we can only get height if its visible
$select.hide();
© Stack Overflow or respective owner