how to define variable in jquery
<p>how can i diclare variable in jquery 
i am using </p>

<pre><code>$.name = 'anirudha';
alert($.name);
</code></pre>

<p>that code is work but when i write this</p>

<pre><code>$.name = document.myForm.txtname.value;
alert($.name);
</code></pre>

<p>then my code is not worked so how can i define a variable in jquery</p>
