This is a little klunky, but before you can measure it, you must have an object.
var $target = $("#target"); $target[0].parentNode.runtimeStyle.display = "block"; var height = $target.height(); $target[0].parentNode.runtimeStyle.display = "none"; alert(height);
source share