javascript not working textarea
<p>I'm trying to add things to a textarea.  it's not working...</p>

<pre><code>&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;
&lt;div id="wrapper"&gt;
&lt;div id="leftc"&gt;
text here 
&lt;a href="#" onclick="javascript: $('wrapper').$('rightx').$('thebox').value += 'TEST\ntest\n\ntest"&gt;Add&lt;/a&gt;
&lt;/div&gt;
&lt;div id="rightx"&gt;
&lt;textarea id="thebox" rows="10" cols="50"&gt;&lt;/textarea&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;&lt;/html&gt;
</code></pre>

<p>Any ideas?</p>

<p><strong>EDIT: SOLUTION I USED:</strong> (Thank you all for insight into my errors)</p>

<pre><code>&lt;a href="#" onclick="javascript:document.getElementById('thebox').value += 'TEST\ntest\n\ntest';"&gt;Add&lt;/a&gt;
</code></pre>
