Hello just wondering why firbug is stating NaN even when these inputs have information entered.
for(i=1;i<8;i++){
var field = document.ContactForm.Field + i.value;
console.log(field);
}
i am trying to iterate through field1, field2 field3 …. field7.
I assume you have a number of fields
Field0…Field8.For that, you need to use different notation:
by the way, while forms can be accessed by name the way you show, a more preferable approach would be the
document.formsarray: