How can I implement javascript to an array. Suppose I have a text box with name=txtphone[]. Though I can implement it for single text box using document.getEle mentByName("txt phone"), but it's not working for txtphone array.