how many ways we can get values from textbox using javascript
<p>I would like to know, how many ways we can get values from text box using javascript.</p>

<p>here are the some commands which i know. could you please advise is there anything other than </p>

<p>these below</p>

<pre><code>alert(document.getElementById('txt_name').value);
alert(document.frm_name.txt_name.value);
alert(document.getElementsByTagName('INPUT')[0].value);
alert(document.getElementsByClassName('txt_name')[0].value);

alert($("#txt_name").val());
alert($("#txt_name").attr('value'));
alert($("input:text").val());
</code></pre>
