title: Using jQuery Validate's invalidHandler event
body: <p>I need to add a class to div that is wrapped around the select element upon validation.</p>
  
  <pre><code>$("#Form").validate({
      invalidHandler: function (form, validator) {
          $("[id$='_DropDownList']").each(function () {
              // How do I figure out if $(this) is valid or invalid?
              // Add the class below if invalid.
              $(this).parent().addClass("error");
          });
      }
  });
  </code></pre>