
Yet another pure JavaScript solution to automatically adjust the height of a textarea to fit its contents while following CSS declarations.
How to use it:
Import the following JavaScript files into the webpage.
<script type ="text/javascript" src="src/auto-ta.js"></script> <script type ="text/javascript" src="src/auto-ta-proto.js"></script>
Initialize and instantiate closure function as this:
var ta = autota(document.getElementById('target-textarea'));API.
var ta = autota(document.getElementById('ta-demo'));
// Update the textarea
ta.update();
// Remove the textarea element and its event listeners:
ta.destroy();Changelog:
v1.3.3 (09/23/2018)
- Fix update function







