Thomas Mango

Automatically Resizing a Textarea's Height

Here is a simple Javascript method that can be used to automatically resize the height of a textarea based on the amount of content inside.

Prototype is used in this example.

Click through if you don’t see the code snippet below.