I just made one for you, try here: http://jsfiddle.net/FNMSP/2/
function autoResize(e){ var ele=e.target;
You can do this in the text box,
<textarea onkeydown="autoResize(event)">Auto Resize!</textarea>
Or use below to attach a function to each <textarea> :
var ele=document.getElementsByTagName("textarea"); for(i=0;i<ele;i++){ ele[i].addEventListener("keydown",autoResize,false) }
Feel free to use it.
source share