Sample jQuery:
$('document').ready(function(){
var $theP = $('p');
var $theDiv = $('div');
$theP.html($theP.html() + "<br>div height: " + $theDiv.outerHeight());
var $theClone = $theDiv.clone();
$theP.html($theP.html() + "<br>clonded div height: " + $theClone.outerHeight());
})
Live link: http://jsbin.com/odujiv/4
In running above, you get a result of '0' when trying to get its height. I think this is due to the fact that the cloned object hasn't yet been put into the DOM. Is the only way to get the height to first add the cloned element back to the DOM? If so, I think that's doable, but it'd be great to handle it before I put it back into the DOM.