Autogrowing (vertically) Textareas - Gmail for Mobile HTML5

When composing a long message in a web app, you really want to see as much of your draft as possible and make use of all the available screen space. This post shares a simple JavaScript solution for textareas that automatically grow (vertically) to the size of the content. They make composing long messages much easier and, […]

When composing a long message in a web app, you really want to see as much of your draft as possible and make use of all the available screen space. This post shares a simple JavaScript solution for textareas that automatically grow (vertically) to the size of the content. They make composing long messages much easier and, for all those iPhone users out there, takes away the need to scroll with the dreaded magnifying glass! Google’s working on getting this into Gmail for mobile but here’s how it’s call: <textarea id="growingTextarea" onkeyup="grow();"></textarea>


Full ArticleCode Blog