title: Reset expanding text-area's height on form submit
body: <p>Hello I have this script which auto expands the text area height based on the amount of content you type into it.</p>
  
  <pre><code>function textAreaAdjust(o) {
    o.style.height = "1px";
    o.style.height = (25+o.scrollHeight)+"px";
  }
  
  &lt;textarea onkeyup="textAreaAdjust(this)" style="overflow:hidden"&gt;&lt;/textarea&gt;
  </code></pre>
  
  <p>This works great for increasing/decreasing the height depending on the content entered. However I would like it to fully reset to default height once you hit enter / submit the form. (its a chat application). Currently you have to begin typing new text after the form is submitted before it recognizing the new appropriate height. (its a lil chat app)</p>
  
  <p>Thanks for any help!</p>