Hello folks,
I had a question concerning a form validator. Here's the context:
I got a Html form with 7 fields (hr1 , hr2 , ... , hr7) and I want to validate em in only 1 loop.
How would you do it ?
for(w=0 ; w<7 ; w++)
{
m = "hr" + w
...
somevar = document.form.m.value //(?!?)
...
}
I had a question concerning a form validator. Here's the context:
I got a Html form with 7 fields (hr1 , hr2 , ... , hr7) and I want to validate em in only 1 loop.
How would you do it ?
for(w=0 ; w<7 ; w++)
{
m = "hr" + w
...
somevar = document.form.m.value //(?!?)
...
}