title: jQuery dynamic resize div after ajax call
body: <p>I'm trying to expand a div to fit text without having to specify an exact hegiht. I tried using something like.</p>
  
  <pre><code>$('#div').addClass('myclass');
  </code></pre>
  
  <p>With myclass having a height:auto; but that won't work. I don't know how to get it to expand the div accordingly from an ajax call that returns text.</p>
  
  <p>This is the main css class</p>
  
  <pre><code>.pro_input{ 
      border-top:2px solid #919191;
      border-left:1px solid #CBCBCB;
      border-right:1px solid #CBCBCB;
      border-bottom:1px solid #CBCBCB;
      width:530px;
      background-color:#F2F2F2;
      height:72px;    
   }
   .pro_attach{
       height:auto;
    }
  </code></pre>
  
  <p>I'm just trying to make the height auto after an ajax reponse. The text can be a little or a lot. So I need it to expand accordingly. I'm used the addclass to change it for other things but using it with jQuery addclass with pro_attach doesn't work.</p>
  
  <p>Thanks</p>