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)
}
}
Reputation Points: 11
Solved Threads: 0
Junior Poster in Training
Offline 54 posts
since Jun 2005