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
you can get height by this code:
document.getElementById('YourElementID').clientHeight;