javascript not storing value in textbox in asp
<p>I am using javascript in an asp.net page where I am also using html textarea to get the text from users.</p>

<p>I want to store that text in the <code>asp:TextBox</code> below and set the visibility of that textbox to "false"..
The problem arises as I use the hidden textbox to store the value , my javascript is not working, and as I set the visibility to "true" it starts working again. but i didn't want to show textbox.. 
I included the textbox as:</p>

<pre><code> &lt;asp:TextBox ID="txtboxhead" runat="server" Visible="false"&gt;&lt;/asp:TextBox&gt;
</code></pre>

<p>and i use javascript as:</p>

<pre><code>document.getElementById('txtareahead').readOnly = true;
text = document.getElementById('txtareahead').value;
document.getElementById('&lt;%= txtboxhead.ClientID %&gt;').value = text;
</code></pre>

<p>how this problem can be solved..
please help me out..</p>
