Steffan A. Cline schrieb:
on 2/1/08 1:10 PM, Jörn Zaefferer at [EMAIL PROTECTED] wrote:

Steffan A. Cline schrieb:
I have a form in multiple sections. The validation declarations are in the
head as the demos show. Problem is that I have a section where there are
multiple groups of dynamically created file inputs. The IDs vary and the
types of files for each group will vary. An Id may be like this
id="cv_fi_1_2". They are coded this way so that on the server side I can
handle the file types appropriately. Is there a trick where I could define
each group with it's own class or something and then tell the validator to
handle file inputs with a certain class attribute? Or to tell it to look for
a specific div ID containing the file inputs and validate them accordingly
to the group? Here is an example

All of these are in the same form and are generated server side number will
vary.
Is having the rules in the head a requirement? If not, it would be easy
to just add them as classes/attributes, an example is here:
http://jquery.bassistance.de/validate/demo/dynamic-totals.html

Though even then I'm not exactly sure if it would work, considering that
all have the same name, which is currently not supported by the
validation plugin.

Jörn
The names could all be made dynamic as well. Since they are file inputs,
they are uniquely handled server side. I'll look at the examples and see how
it works out.
Okay, great. Let me know if the issue remains.

Jörn

Reply via email to