title: Which Parsley.js method should I use for adding/updating accessibility attributes?
body: <p>I have a parsley-config.js file in which I have successfully added lots of customizations to parsley, utilizing the methods described on Parsley's <a href="http://parsleyjs.org/doc/annotated-source/defaults.html" rel="nofollow">defaults.js documentation</a>. However I'm having trouble figuring out how to add some attributes to elements upon validation. the <code>classHandler</code> method looked promising but only ran on initialization, not when validating. </p>
  
  <p>Here's a little of the code I'm thinking of using. I just need to know what Parsley method I should stick it in.</p>
  
  <pre><code>var ParsleyConfig = {
    mysteryMethod: function(parsleyField) {
      var $field = parsleyField.$element;
      // Acessibility attributes based on error or not
      if (parsleyField.validationResult.length &gt; 0) {
          $field.attr({'aria-describedby': parsleyId, 'aria-invalid': true});
      } else {
          $field.removeAttr('aria-describedby').attr({'aria-invalid': false});
      }
  ...
  }
  </code></pre>