without using jquery, how can i get all input fields of type "text"?
<p>i know i can do:</p>

<pre><code>document.getElementsByTagName("input");
</code></pre>

<p>do i need to loop through and check the attributes for type == "text" ?</p>

<p>i know jquery has input[type="text"] but i presume that's a jquery thing?</p>
