title: jQuery - remote validation rule
body: <pre><code>&lt;script type="text/javascript"&gt;
  $(document).ready(function() {
      jQuery(function($){
          $("#form").submit(function(e){
             if ($(this).valid()){
                  $.ajax( {
                      type: "POST",
                      url: "http://localhost/My/modules/validate.php",
                  });
             }
             return false;
       })});
          $("#form").validate({
              rules: {
                  user: {
                      remote: {
                          url: "http://localhost/My/modules/validate.php",
                          async: false,
                      }
                  }
              }
          });
  });
  $.validator.setDefaults({
      debug:      true,
      success:    "valid",
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>I want to create remote validation rules. This example correctly reads ajax requests. Though returning true/false both evaluate to validation error.</p>
  
  <p>However, deleting ajax part (jQuery()) results in lack of ajax initialization, the request isn't even handled.</p>
  
  <p>async: false seems to be passive, deleting this results in the same thing.</p>
  
  <p>Anyone could have any slightest idea what could be wrong here?</p>
  
  <p>EDIT:</p>
  
  <pre><code>$(document).ready(function() {
          $("#form").validate({
              rules: {
                  user: {
                      remote: "http://localhost/My/modules/validate.php",
                  }
              },
              submitHandler: function (form) {
                  // do your ajax form submission here
                  return false; // prevent redirect since you did ajax
              }
          });
  });
  &lt;/script&gt;
  </code></pre>