I need a function to get the height of the highest element inside a div.
I have an element with many others inside (dynamically generated), and when I ask for the he
You could always do:
var t=0; // the height of the highest element (after the function runs)
var t_elem; // the highest element (after the function runs)
$("*",elem).each(function () {
$this = $(this);
if ( $this.outerHeight() > t ) {
t_elem=this;
t=$this.outerHeight();
}
});
Edited to make it work again.