/ Published in: JavaScript
                    
                                        
JavaScript  for a blog post on creating styled mobile textareas
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
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";
}
Comments
 Subscribe to comments
                    Subscribe to comments
                
                