title: jquery validation errorPlacement not working
body: <p>Im just trying to customize where I put the error messages generated by jQuery validation.  I have the following code:</p>
  
  <pre><code>$('document').ready(function(){
      $('form').validate({
          rules: {
             a: {required:true, minlength:2}
          },      
          messages: {
             a: {required: "enter your name!"}       
          },
          errorPlacement: function(error, element) {
           if(element.attr('name' == 'a')){
               error.appendTo($('#restErrorDate'));                    
           }
          },
          debug:true
      });
      $('#a').blur(function(){
          $("form").validate().element("#a");
      });
  });
  </code></pre>
  
  <p>here is the html:</p>
  
  <pre><code>&lt;div&gt;
  &lt;form action="#"&gt;
      &lt;input type="text" name="a" id="a"&gt;
  &lt;/form&gt;
  &lt;/div&gt;
  &lt;div id="restErrorDate" class="restErrorDate" style="border:1px solid blue;"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>For some reason it is not working.  Thanks so much in advance for your help...this little thing has been keeping me working for a long time.  Here is the jsfiddle:</p>
  
  <p><a href="http://jsfiddle.net/mmw562/S7AKK/38/" rel="nofollow">http://jsfiddle.net/mmw562/S7AKK/38/</a></p>