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.
Implementation of javascript in array of name
Collapse
X
-
Tags: None
-
https://developer.mozil la.org/en/DOM/document.getEle mentsByName
- don't forget the "[]".Code:document.getElementsByName("txtphone[]") -
I doubt that. the function is calledSuppose I have a text box with name=txtphone[]. Though I can implement it for single text box using document.getEle mentByName("txt phone"),document.getEle mentsByName()
other than thatname=txtphone[]does not create an array in HTML or JavaScript, it does in PHP.Comment
Comment