Use the submitHandler-option to run code once the form is valid.

Jörn

On Wed, Nov 5, 2008 at 12:20 PM, Daniel <[EMAIL PROTECTED]> wrote:
>
> I am using jQuery show/hide functions on click, so when you click on
> the contact link it hides that div and then shows a contact form. Once
> you fill in the contact form and click submit it shows the thanks page
> div.
>
> I am using validation from here: 
> http://bassistance.de/jquery-plugins/jquery-plugin-validation/
>
> The problem is, is that I need it so when you click on submit on the
> contact form page it doesn't show and hide the div if the validation
> has failed as it does now.
>
> Is there anyway of making it so that I can only click the submit
> button or show hide the divs if validation is passed?
>
> Thanks
>

Reply via email to