title: Toggle DIV height upon `onClick`
body: <p>I want to toggle the height of a division. I've tried using .animate with a if/else statement. but it would just bounce back. 
  The code im now using will hide my division instead of toggling the height. It will trigger when clicked.</p>
  
  <pre><code>$(document).ready(function() {
         $("#content1").toggle(function(){
           $(this).animate({height:'400px'});
     }, function() {
           $(this).animate({height:'200px'});
     });
  });
  </code></pre>
  
  <p>I hope someone has the answer because I could nowhere find a answer on google/stackoverflow.</p>