TypeError when applying a textarea's value to a variable

Posted by Espresso on Stack Overflow See other posts from Stack Overflow or by Espresso
Published on 2010-04-08T03:44:10Z Indexed on 2010/04/08 3:53 UTC
Read the original article Hit count: 205

Filed under:

JavaScript

var textarea = document.getElementById("textarea").value;

HTML

<textarea id="textarea" cols="100" rows="10">du hello!</textarea>

© Stack Overflow or respective owner

Related posts about JavaScript