-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Supporting Fields With Same Name #423
Comments
This works fine but thers's a problem with this solution that it also adds validation to disabled elements which were working as default. Please, try to solve this problem also. |
Why not override the elements function, since it is what stops at the first name:
|
It's worth to note, @dsand1234, that |
This solution the problem, i temporarily implement the code before $(form).validate() call. But still a problem: the error message is written on first occurrence. |
This works for me but error message is displayed after first input. Can anybody suggest any solution to place error messages ? |
need also support for fields with same name... |
…es is solved. PREVIOUSLY UNNOTICED PROBLEM - validations don't seem to be cloned. Known issue - see jquery-validation/jquery-validation#423
I'm sorry for the lack of activity on this issue. Instead of leaving it open any longer, I decided to close old issues without trying to address them, to longer give the false impression that it will get addressed eventually. To the reporter (or anyone else interested in this issue): If you're affected by the same issue, consider opening a new issue, with a testpage that shows the issue. Even better, try to fix the issue yourself, and improve the project by sending a pull request. This may seem daunting at first, but you'll likely learn some useful skills that you can apply elsewhere as well. And you can help keep this project alive. We've documented how to do these things, too. A patch is worth a thousand issues! |
First thank you for all your work on this plugin, it has made my life easier on many occasions. The reason I'm submitting this issue is because today I ran into an issue where I needed to validated fields with the same name, something like:
<input type="text" name="foo[]" value="" />
- the problem is the plugin will only validate the first field with this name which I'm sure you know.I spent a while looking for solutions but couldn't find any that worked correctly until I stumbled on this. This works perfectly! The general idea that you update the checkForm function to this:
Is this a viable solution? If so is it possible to get this implemented into the core to solve issues in the future?
The text was updated successfully, but these errors were encountered: