Hello Javascript gurus. This part of a function is troubling me, am I on the rite track?
for (i = 1; i < theForm.ExtraHourPossibles.value; i++)
{
var fname = theForm.extraHours+i.value
alert(fname);
}
Specifically this line:
var fname = theForm.extraHours+i.value
My objective is for the fname value to generate:
theForm.extraHours1.value
theForm.extraHours2.value
theForm.extraHours3.value
theForm.extraHours4.value
Thankyou in advance
for (i = 1; i < theForm.ExtraHourPossibles.value; i++)
{
var fname = theForm.extraHours+i.value
alert(fname);
}
Specifically this line:
var fname = theForm.extraHours+i.value
My objective is for the fname value to generate:
theForm.extraHours1.value
theForm.extraHours2.value
theForm.extraHours3.value
theForm.extraHours4.value
Thankyou in advance