Submit your widget

jQuery plugin that expands and contracts textareas up to a certain height

Created 7 years ago   Views 7391   downloads 1790    Author mholt
jQuery plugin that expands and contracts textareas up to a certain height
View DemoDownload
69
Share |

Simple, light-weight, and feature-free jQuery plugin that expands and contracts textareas up to a certain height, based on newlines in the user's input.

Usage

Include jQuery on your page, then, when the document is ready:

$('textarea').expandify(); 

You can also pass in a maximum number of rows (default is 5):

$('#myTextarea').expandify(10);