/ Published in: JavaScript
JavaScript for a blog post on creating styled mobile textareas
Expand |
Embed | Plain Text
function resizeTextArea(){ var content = document.querySelector("#notes_content"); var container = document.querySelector("#notes_content_hidden"); container.innerText = content.value; content.style.height = container.offsetHeight + "px"; }
You need to login to post a comment.
