I\'m quite new to javascript/jquery stuff, but i would like to do this kind of thing with it:
I have four divs side-by-side like this and content in each one. Now if
I was getting a NaN error with SLaks code. Giving maxHeight an initial value of 0 did the trick.
var maxHeight = 0; $('div') .each(function() { maxHeight = Math.max(maxHeight, $(this).height()); }) .height(maxHeight);
Thanks SLaks!