I have a series input tag like
<input id="t1" value="1">
<input id="t2" value="2">
<input id="t3" value="3">
then I want build a javascript object as id/value format,like :
input:
{
["t1",1]
["t2",2]
["t3",3]
}
how can I achieve that?with which function or method?with Array?
The object you describe is invalid. Assuming you mean:
Just loop over the elements, and examine the id and value properties to get the data.