Jquery Validation, open accordion -


We are using jQuery Accordion & Validation on the same page ... There are 3 accordions within the form.

Verification works perfectly but what do I want to do if 1 field is valid I want to open the accordion in the in-valid field

I'm trying to do this on an invalid handler but can not get it to open, I have tried to use the following:

  InvalidHandler: function ( Event, verifier, element) {$ ('# form1'). ('Error. Panic message'). Parents ('Field'). next (). Show (); },   

Is there any success in doing this?

Thank you.

This is managed to get people working.

I have just removed one of the .parents () code, so it looks like this now:

  $ ('# Form1') ('error .error-message. ') To find parents () show () ...   

Thanks.

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -