javascript error for the textbox
<pre><code>&lt;asp:Button ID="Button1" runat="server" Text="Button"  OnClientClick ="toggletr();"  /&gt;

&lt;script   type ="text/javascript" &gt;

function toggletr()
{
debugger;
var Inputs =$get("TextBox1");
}
&lt;/script&gt;
</code></pre>

<p>i  trying    this   i am  getting   error:</p>

<blockquote>
  <p>Microsoft JScript runtime error: Object expected</p>
</blockquote>

<p>but in  textbox  it  contains    value</p>

<pre><code>//var Inputs = document .getElementById ("TextBox1");
</code></pre>

<p>if i do like this i am getting the value.
can  any  one  tell me  how  to  solve this  one in javscript using <code>$get()</code>  or JQuery
 how  to  assign value</p>

<p>thank  you </p>
