I want to make verification before submission, such as:
I have 10 Text text boxes, named TXT0, TXT2, TXT3 ... TXT9
I want to judge that they are empty.
Function khk () {
Var S;
For (i = 0; i <10; i )
{
s = 'txt' 'i';
Alert (s);
Alert (Form1.s.Value);
}
}
script>
Alert (s) is ok, but Form1.s is not an object, how to turn him into an object? ? ?
-------------------------------------------------- -------------
Alert (Document.all ("TXT" i) .value)
-------------------------------------------------- -------------
EVAL ("Form1." S ". Value)
-------------------------------------------------- -------------
Obj = evAl ('form1.txt' i);
Alert (Obj.Value)
-------------------------------------------------- -------------
Map :(
should be: