I have two divs, neither have a height set in css, as I want to take whatever height they end up as and set the other div to be that height.
The javascript I have is
There are jQuery plugins to do this in a general way. Here's one.