Posts by Cleber • 11 points
1 post
-
0
votes2
answers412
viewsA: Problem when leaving the width of the automatic textarea
I think this might help you! var tx = document.getElementsByTagName('textarea'); for (var i = 0; i < tx.length; i++) { tx[i].setAttribute('style', 'height:' + (tx[i].scrollHeight) +…