t ) { t_elem=this; t=$this.outer..." />

How to get height of the highest children element in javascript/jQuery?

You could always do: var t=0; var t_elem; $("*",elem). Each(function () { $this = $(this); if ( $this.outerHeight() > t ) { t_elem=this; t=$this.outerHeight(); } }); Edited to make it work again.

1 You may want to use outerHeight() instead of height(). – John Fisher Jul 2 '09 at 19:32 Awesome, thank you guys! – Leandro Ardissone Jul 2 '09 at 19:37 elem is not defined t_elem.outerHeight() is not a function Did you test this?

– David Ryder Jun 18 at 10:13 @David Ryder: elem is not defined because it is the element that you are testing. Instead of elem, you put in the name of the actual var that holds the element you want to test. As for outerHeight() most likely something has changed since I answered this.

I will edit the answer to make it work. – Thomas Jun 19 at 13:33.

If the div element is smaller than it's children, the children are probably floating. Can you allow the div to be as large as children? If you can, add a clearing element at the bottom to make the div wrap it's children: test The containing div should then have the correct size and you can get it by just doing: $("#someParent").height().

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions