title: Change a div's height to auto using jQuery once the div reaches a certain height
body: <p>I have a div that lets the user add additional form inputs dynamically. I'd like to be able to change this div's height to auto once it reaches a certain height. Here is the jQuery code I have, though it doesn't seem to be working at the moment. </p>
  
  <pre><code>$(document).ready(function(){
  if($('#upload3').height() &gt; 400){ $('#upload3').css('width','auto'); }  });
  </code></pre>