Installation
Using Bower:
bower install bsp-autoexpand
Manually:
- Download jQuery 1.7.0 or above
- Download bsp-utils.js (repository)
- Download bsp-autoexpand.js
Usage
Add data-bsp-autoexpand attribute to any input or textarea element to let it expand automatically to fit its content (demo). If the element has its css display set to block, it will expand vertically. Otherwise, it will expand horizontally.