title: Jquery Validation, open accordion
body: <p>We are using jQuery Accordion &amp; Validation on tha same page... There are 3 accordions within the form.</p>
  
  <p>The validation works perfectly but what I want to do is if 1 of the fields is in-valid I want the accordion to open on the in-valid field.</p>
  
  <p>I'm trying to do it on the InvalidHandler but can't get it to open, I've tried using the following:</p>
  
  <pre><code>invalidHandler: function(event, validator, element) {
  
    $('#form1').find('error.error-message').parents('fieldset').next().show();
  
  },
  </code></pre>
  
  <p>Has anyone managed to do this?</p>
  
  <p>Thanks.</p>