validate plugin with one element

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

validate plugin with one element

Eben Goodman

I have a simple form with one select list as it's element.  I am using
the validate plugin to do remote ajax validation on that element.  The
response returns a true or false.

This all works fine, but the problem is that the validation takes
place when you click the submit button, since there are no other form
elements to move to.  You then have to click the submit button twice,
once to validate, and again to actually perform the submit...

Is there a way to have it automatically submit after the validation
returns true?

Here's the code:
$(document).ready(function() {
                    // validate signup form on keyup and submit
                       rules: {
                        element: {
                                 remote: "remote.php"

You received this message because you are subscribed to the Google Groups "jQuery Plugins" group.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to [hidden email]
For more options, visit this group at