title: How to change height div on window resize?
body: <p>I have a div on my website that should be the height of the window.
  This is what i got:</p>
  
  <pre><code>    $(document).ready(function() {
      var bodyheight = $(document).height();
      $("#sidebar").height(bodyheight);
  });
  </code></pre>
  
  <p>However, it does not automatically change when the window is resized? Does any body know how to fix this?</p>
  
  <p>Thanks</p>