[Javascript] Form validation
Cutter (JavaScript List)
java.script at seacrets.com
Tue Jan 20 08:41:43 CST 2004
Chris,
Thanks, but I'm still languishing here. I tried
form.elements[arrFields[i]].focus();
and
form.elements[sName].focus();
Both times it gave me the error "Error:'elements' is null or not an
object". Any ideas? Anyone? Anyone?
Cutter
Chris Tifer wrote:
>>form.array[i].focus();
>>
>>
>--------------------------
>As long as it's an input of some sort, you can always do:
>
>form.elements[array[i]].focus()
>
>Now I'm assuming array[i] just refers to to a string. Not to an actual
>element. If it's an element, it'd probably error out.
>
>And I am also assuming that you did not name your array, array[]. Correct?
>If so, call it something like arrFields or something else.
>
>
>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript
>
>
More information about the Javascript
mailing list