Support & Downloads

Quisque actraqum nunc no dolor sit ametaugue dolor. Lorem ipsum dolor sit amet, consyect etur adipiscing elit.

s f

Contact Info
198 West 21th Street, Suite 721
New York, NY 10010
[email protected]
+88 (0) 101 0000 000
VALIDATE MULTIPLE FIELDS WITH THE SAME NAME

JQUERY: VALIDATE MULTIPLE FIELDS WITH THE SAME NAME

Sometimes we need to validate an array of input elements: For example –

Now we will use jquery validation plugin jquery.validate.js for validating the form. The condition will be that user will have to choose field_name from each dropdown. The script for validation will be as below –

Now the problem is that the jquery.validate.js only validates the first element of field_name[]. So, we need to modify it a little bit.

In jquery.validate.js, we can find a function named checkForm,
just comment out the org code
we have to modify it as below:

Sagar Doshi

CEO / Managing Partner

[email protected]

Post a Comment