Override jQuery validation highlight / unhighlight methods
<p>I want to override the highlight and unhighlight functions in jQuery validator to do what they normally and also add a different class to a parent element.</p>

<p>Basically I want this:  (Where I need help wish the base.. part)</p>

<pre><code>    jQuery.validator.setDefaults({
         highlight: function(element, errorClass, validClass) {
             base.highlight(element, errorClass, validClass);
             element.parents('div.form-group').addClass('has-error');
          },
         unhighlight: function(element, errorClass, validClass) {
             base.unhighlight(element, errorClass, validClass);
             element.parents('div.form-group').removeClass('has-error');
          },
    });
</code></pre>

<p><a href="https://stackoverflow.com/questions/11477848/overriding-jquery-validation-highlight-unhighlight-methods">This question</a> is asking the exact same thing however that answer doesn't work. The original function is not being passed in.  Perhaps the code has since been changed?</p>