Posted By

tpryan on 01/10/12


Tagged


Versions (?)

JavaScript for textarea post


 / Published in: JavaScript
 

JavaScript for a blog post on creating styled mobile textareas

  1. function resizeTextArea(){
  2. var content = document.querySelector("#notes_content");
  3. var container = document.querySelector("#notes_content_hidden");
  4. container.innerText = content.value;
  5. content.style.height = container.offsetHeight + "px";
  6. }

Report this snippet  

You need to login to post a comment.