Auto-expanding textarea

后端 未结 5 1939
执念已碎
执念已碎 2020-11-30 00:50

I\'m trying to do a simple auto-expanding textarea. This is my code:

textarea.onkeyup = function () {
  textarea.style.height = textarea.clientHeight + \'px\         


        
5条回答
提交回复
热议问题