User enters account number
if another account number is needed
User clicks add account which creates another row
When validating when they hit submit I want to check to make sure they tell
us how much money to charge to all account numbers except the first one (all
remaining money goes on the first account number)
within the header script:
for(i = document.RFO.ar ow.value; i > 1 ; i--){
if (document.RFO.a cct_tot_i.value ==""){
alert("Need Amount For Each Account Used");
document.RFO.ac ct_tot_i.focus( );
}
}
The problem seems to be with the if statement...I'v e also tried
if (document.RFO.a cct_tot_(i).val ue ==""){
alert("Need Amount For Each Account Used");
document.RFO.ac ct_tot_(i).focu s();
}
if another account number is needed
User clicks add account which creates another row
When validating when they hit submit I want to check to make sure they tell
us how much money to charge to all account numbers except the first one (all
remaining money goes on the first account number)
within the header script:
for(i = document.RFO.ar ow.value; i > 1 ; i--){
if (document.RFO.a cct_tot_i.value ==""){
alert("Need Amount For Each Account Used");
document.RFO.ac ct_tot_i.focus( );
}
}
The problem seems to be with the if statement...I'v e also tried
if (document.RFO.a cct_tot_(i).val ue ==""){
alert("Need Amount For Each Account Used");
document.RFO.ac ct_tot_(i).focu s();
}
Comment