title: jQuery Validate plugin dynamically choose error element
body: <p>I'm using the <a href="http://bassistance.de/jquery-plugins/jquery-plugin-validation/" rel="nofollow">jQuery Validation Plugin</a> and I would like to be able to dynamically determine the <code>errorElement</code> based on the type of element that has an error. I know that you can the <code>errorElement</code> like so:</p>
  
  <pre><code>$("form").validate({
      errorElement: "div"
  });
  </code></pre>
  
  <p>However, I would like to be able to change it so that if the type were a checkbox or radio button, then I could make the <code>errorElement</code> an <code>li</code>. Does anyone know how to do this? Thanks!</p>