validate loop generated 'textfields'
[email protected] (red dragon) Thu, 29 Apr 2004 00:12:41 -0700 (PDT)
| Newsgroups | perl.javascript |
|---|---|
| Message-ID | <[email protected]> |
--0-148226773-1083222761=:69489
Content-Type: text/plain; charset=us-ascii
I have textfields which are generated by for loop like
--------------------------------------------------------
print "<form method=\"post\" action=\"test.pl\">\n";
my @list = get_from_sub();
for $i (0 .. $#list) {
print "<input type=\"text\" name=\"qty$i\">\n
}
print "</form>
---------------------------------------------------------
Basically I want to use javascript to validate all textfields,
but how can I achieve this? I know normally we can use 'onSubmit'
in <form> but since my <form> is outside of loop, it can't detect
all checkboxes. Please help me sort this out
---------------------------------
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
--0-148226773-1083222761=:69489--