You need to loop through a series of texboxes, right?
so something like this should work to get the value of your textboxes...
for(i=0; i<document.forms[0].elements.length; i++){
if(document.forms[0].elements[i].type == 'text')
var elName = document.forms[0].elements[i].name;
var elValue = document.forms[0].elements[i].value;
// Display element name and value
alert(elName +' = '+ elValue)
}
}
senexom
Junior Poster in Training
54 posts since Jun 2005
Reputation Points: 11
Solved Threads: 0