jquery - toggling a div height based on current height vs. limit
<p>jsfiddle is here: <a href="http://jsfiddle.net/M86nA/" rel="nofollow">http://jsfiddle.net/M86nA/</a></p>

<p>code is this:</p>

<pre><code>$('div.wrap').click(function(){
   var $minY = $('div.imgur-wrap').height();
   if ($minY = 280) {
      $('div.wrap').animate({height: 500});
   }else{
      $('div.wrap').animate({height: 280});
   }
});​
</code></pre>

<p>i imagine it's because it does have the new height (500) when executing the if? how can i do this?</p>

<p>Thanks!</p>

<p>EDIT: replacing "=" with "==" and removing "imgur" in selector fixes it. </p>
