How to access multiple textbox by getElementsByName
<p>I have written following code in html:</p>

<pre><code>&lt;input type="text" id="id_1" name="text_1"&gt;
&lt;input type="text" id="id_2" name="text_2"&gt;
&lt;input type="text" id="id_3" name="text_3"&gt;
</code></pre>

<p>Here I have to get all textBoxes in an array in javascript function whose id starts with "id". So, that I can get above two textBoxes in an array. </p>

<p>How to get all textBoxes whose id start with "id"? </p>
