|
I'm looking for help.
I have 5 fields on a form that i'm reading in as
var yr1cost = Form1.yr1Cost.value;
var yr2cost = Form1.yr2Cost.value;
var yr3cost = Form1.yr3Cost.value;
var yr4cost = Form1.yr4Cost.value;
var yr5cost = Form1.yr5Cost.value;
i know what to loop through these and check to see if there are null
for example
i = 0
do while 1<4
if
----------------------------------------------------------------------------------------------------------
I'm looking for help.
I have 5 fields on a form that i'm reading in as
var yr1cost = Form1.yr1Cost.value;
var yr2cost = Form1.yr2Cost.value;
var yr3cost = Form1.yr3Cost.value;
var yr4cost = Form1.yr4Cost.value;
var yr5cost = Form1.yr5Cost.value;
i know what to loop through these and check to see if there are null
for example
i = 0
do while 1<4
if field null then display error
if field is 0 > greater then do something else
loop
my problem is i do not know how to loop throught the different fileds
i cant go from yr1cost to yr2cost
automatically
|