M
mike
If I have 2 object arrays like:
var txtobj = theform.getElementsByTagName("input");
var selobj = theform.getElementsByTagName("select");
and i want to iterate over them I'd like to combine them and then
iterate over them.
so I would do something like this below, but that doesn't look right.
var bothobj = txtobj+selobj;
for( var i=0; i<bothobj.length; i++ )
{
do something....
}
Any thought?
var txtobj = theform.getElementsByTagName("input");
var selobj = theform.getElementsByTagName("select");
and i want to iterate over them I'd like to combine them and then
iterate over them.
so I would do something like this below, but that doesn't look right.
var bothobj = txtobj+selobj;
for( var i=0; i<bothobj.length; i++ )
{
do something....
}
Any thought?