I want to get value from
<input type="text" name="Phone[]" id="Phone">
by javascript. How to do it? please help me.
I want to get value from
<input type="text" name="Phone[]" id="Phone">
by javascript. How to do it? please help me.
Maybe it is me who don't know HTML5 enough but what do you mean by "element Array".
The value of an input text is, if I am not mistaken, always a String so there is no array.
if you want all the inputs with a special class and then get the values as an array, you can do it like that:
$("input .phone").each(function(elem){return elem.val();});
and this will be an array of string
Did I answer your question?