title: Measure height of div1 and make div2 same height with jQuery
body: <p>I want to get the height of div1 and make div2 the same height. </p>
  
  <p>I can give div2 a set height with
  this:</p>
  
  <pre><code>$('#div2').height(1000);    
  </code></pre>
  
  <p>However the following does nothing: </p>
  
  <pre><code>$('#div2').height(
      $("#div1").height()
  );
  </code></pre>
  
  <p>Do I have a syntatical error? </p>
  
  <p>UPDATE the element that im trying to set the height of already has its height set with an inline style that is set earlier on with javascript. </p>