title: Toggling height of div in jQuery
body: <p>This question has been already addressed, but none of the solutions have worked for me.</p>
  
  <p>I referred to <a href="https://stackoverflow.com/questions/4965004/jquery-animate-height-toggle">this earlier question addressing the same problem</a>:</p>
  
  <p>I noticed that one of the responses gave <a href="http://jsfiddle.net/SQHQ2/1/" rel="nofollow noreferrer">this jsfiddle link</a>, which implements the exact functionality that I want, and works.  </p>
  
  <pre><code>    $("#topbar").toggle(function(){
        $(this).animate({height:40},200);
      },function(){
        $(this).animate({height:10},200);
      });
  </code></pre>
  
  <p>But when I changed the framework to anything but jQuery 1.4.4, the div starts instantly disappearing as soon as the page loads.  This is the problem I've been having on my own project.  </p>
  
  <p>Any ideas on how to get that jsfiddle working on jquery 2.x?  What am I missing?</p>