Textarea autogrow to resize based on content length

30/08/2021  •  2264 views
 
<script type="text/javascript">$("#textareaid").on("input",function(){this.style.height="auto",this.style.height=this.scrollHeight+"px"});</script>

<textarea id="textareaid">Your text</textarea>
 English / Indonesian