Auto Growing Textareas

Auto Growing Textareas

This plugin makes it easy to have auto-growing textareas. Meaning, if you have a textarea, as the user types it will expand vertically to accommodate the size of the entry. This was inspired by Facebook's auto-expanding text areas.

To make a textarea autogrow, simply do this

  1. $('textarea').autogrow(); 
  2. $('textarea.classname').autogrow(); 


转载请注明:代码家园 » Auto Growing Textareas