title: Custom jQuery Validate method for ajax
body: <p>How to create a custom method with ajax for jQuery Validate plugin?
  I did try the next way, but the validator returns every time invalid. </p>
  
  <pre><code>    jQuery.validator.addMethod('customValidator', function (value, element) {
          $.ajax({
              url: '/ajax/validator/',
              type: 'POST',
              async: false,
              data: {field: value},
              dataType: 'json',
              success: function(result) {
                  return result.data.valid;
              }
          });
          //.fail(function() {
          //    return false;
          //});
      }, '');
  </code></pre>
  
  <p><strong>I really have to create a new method, can not use the remote.</strong></p>