I have multiple text fields in my page called
Con_Hours0 Old_Con_Hours0
Con_Hours1 Old_Con_Hours1
Con_Hours2 Old_Con_Hours2
Con_Hours3 Old_Con_Hours3
etc
etc
In my java script I want to loop through and pick up the values of each
field so I was looking at replacing the number with a variable
sort of like this
Count = 0
While Count < 10
if DocumentName.Co n_Hours" + Count + ".value != DocumentName.Ol d_Con_Hours"
+ Count + ".value
{
alert("Things Have been Changed in Row Number" + Count);
}
loop
I can not get it to work, can you guys advise where I am going wrong?
Many Thanks
Mark
Con_Hours0 Old_Con_Hours0
Con_Hours1 Old_Con_Hours1
Con_Hours2 Old_Con_Hours2
Con_Hours3 Old_Con_Hours3
etc
etc
In my java script I want to loop through and pick up the values of each
field so I was looking at replacing the number with a variable
sort of like this
Count = 0
While Count < 10
if DocumentName.Co n_Hours" + Count + ".value != DocumentName.Ol d_Con_Hours"
+ Count + ".value
{
alert("Things Have been Changed in Row Number" + Count);
}
loop
I can not get it to work, can you guys advise where I am going wrong?
Many Thanks
Mark
Comment