Skip to content

jQuery auto-grow / auto-expand / auto-resize text area

Notifications You must be signed in to change notification settings

saurovh/jquery.autogrow

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Auto-grow TextArea

It provides Facebook-like auto-grow/auto-expand/auto-resizing text area.

Required jQuery 1.4+

Options
expandTolerance : Number of extra lines in the text area. Default is 1.
minHeight: Minimum height of the text area in pixel. If not specified, it will try to get it from the min-height CSS style. Default: 0
maxHeight: Maximum height of the text area in pixel. If not specified, it will try to get it from the max-height CSS style. Default: 99999
enterToSubmit: Submit the form with enter key. Default: false

Examples
$('form textarea').autogrow();

Special thanks to Craig Buckler who provided an excellent tutorial of how to write the plugin.

About

jQuery auto-grow / auto-expand / auto-resize text area

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published