| Issue 203: | nyroModal + Validation plugin | |
| 3 people starred this issue and may be notified of changes. | Back to list |
|
I'm trying to use nyroModal in conjunction with a form validation plugin ( http://bassistance.de/jquery-plugins/jquery-plugin-validation/ ) But for some reason, when the form is submitted, the validation plugin kicks in, and shows the error in the form.. but the form submit still happens - the submit routine is going on and doesnt stop because of the validation error... This problem only happens when the <form> element has 'class="nyroModal"' (so the form will be submitted "inside" the modal, and not to a new page)... if the form does not have the "nyroModal" class, validation stops the form from being submitted if a validation error occurs... Is there any way to make both of the plugins to work together? Many thanks in advance!
May 4, 2009
sorry for the late response - its working great! thanks!
May 4, 2009
better late than never ;)
Status:
Fixed
Apr 3, 2011
Do you have a code snippet? I have the same issue and the solution you mentioned is not working/clear for me. |
||||||||
instead of adding class="nyroModal" on your form, you should use the valid callback of your valdiation plugin to open the modal. example: $("#myform").validate({ submitHandler: function(form) { $(form).nyroModalManual(); } }); please let me know if it's working.