jQuery

Facebook Style Expanding textareas

tl;dr: use autosize.js by Jack Moore.

I did write an original article here using a custom plugin I had mostly made, however, that plugin was… Shit. It really was. I also never updated this page to include the decent edition. Well, now here it is: autosize.js by Jack Moore.

This plugin is so dirt simple to use, just (once included):

autosize($('textarea'));
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s