Autosize

A small, stand-alone script to automatically adjust textarea height.


Usage

JS

In order to use this plugin on your page you will need to include the following script in the “Page JS” area from the page’s footer:

<script src="../../assets/libs/autosize/dist/autosize.min.js"></script>

Initialization

Add the data-toggle="autosize" attribute on any textarea input.

Example

Default

<textarea class="form-control" data-toggle="autosize" placeholder="This textarea will autosize while you type" rows="1"></textarea>