Autosize
A small, stand-alone script to automatically adjust textarea height.
Official DocumentationUsage
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>