actually i can't understand the reason u need it as the array...
for syntax, chk: http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/methods/getelementsbytagname.asp
maybe i misunderstood the question. what i want to say is, you can use obj1.getElementByTagName to get the object collection under obj1 then you can iterate that collection, right?
you can 'group' your INPUT controls set by any object, for example,
<span id="row1">
<input id="cell1">
<input id="cell2">
<input id="cell3">
</span>
<span id="row2">
<input id="cell1">
<input id="cell2">
<input id="cell3">
</span>
therefore, you can use
var arrINPUTRow1 = document.getElementById("row1").getElementsByTagName("INPUT");
again, maybe i just misunderstood your requirements...
for syntax, chk: http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/methods/getelementsbytagname.asp
maybe i misunderstood the question. what i want to say is, you can use obj1.getElementByTagName to get the object collection under obj1 then you can iterate that collection, right?
you can 'group' your INPUT controls set by any object, for example,
<span id="row1">
<input id="cell1">
<input id="cell2">
<input id="cell3">
</span>
<span id="row2">
<input id="cell1">
<input id="cell2">
<input id="cell3">
</span>
therefore, you can use
var arrINPUTRow1 = document.getElementById("row1").getElementsByTagName("INPUT");
again, maybe i just misunderstood your requirements...