TypeError when applying a textarea's value to a variable
<p><strong>JavaScript</strong></p>

<pre><code>var textarea = document.getElementById("textarea").value;
</code></pre>

<p><strong>HTML</strong></p>

<pre><code>&lt;textarea id="textarea" cols="100" rows="10"&gt;du hello!&lt;/textarea&gt;
</code></pre>
