Implementation of java script in array of name
<p>How can I implement java script to an array. Suppose I have a text box with <code>name=txtphone[]</code>.  Though I can implement it for single text box using <code>document.getElementByName("txtphone")</code>, but it's not working for txtphone array.</p>
