Please look at the following link.
HTML:
<div id="test">
<div id="test1">test 1</div>
<div id="test2">test 2</div>
</div>
Javascript:
$(document).ready(function(){
$("#test").hide();
alert($("#test").height());
alert(document.getElementById("test").getBoundingClientRect().height);
});
How is jquery alone able to get the height of the hidden div? Thanks!