title: JQuery Submit not called with remote verification
body: <p>I am trying to get my form to submit with jquery, and having a bit of trouble.</p>
  
  <p>Why is my submit handler not being called?</p>
  
  <p>I am trying to verify if a user name is already taken in the db using remote validation in the jquery rules section.  The php code to look up in the db works fine.  Very simplified code below.</p>
  
  <p>If I remove the "remote" entry, the submit handler is called.  If the code has the remote entry in the rules, then the submit handler is not called.  From tracing through the JQuery code, it looks like there is some "pending request" preventing the submit from being called.</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;script src="/js/jquery.1.11.2.min.js"&gt;&lt;/script&gt; 
  &lt;script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"&gt;&lt;/script&gt;
  
  &lt;script src="/js/jquery.validate.js"&gt;&lt;/script&gt;
  
  &lt;input type ='text' placeholder='Username' name="username" maxlength="25" size="20"  id="username" &gt;
  
  &lt;input type="submit" value="submit" title="submit" &gt;
  </code></pre>
  
  <p>Javascript:</p>
  
  <pre><code>$(document).ready(function(){
       // ----------- Form Validation -----------------
   $("#test").validate({
        rules: {
           username: {
              required: true,
              minlength:5,
              maxlength:25,
  
              remote: {
          //      async: false,
          //     data: {
          //            'username': $('#username').val()
        //          },
      //           dataType: 'json',
                  //dataType: "Text", 
                  url: "/account/account-search/checkusername.php",
                  type: "POST"
              }
          }
  
          },
          messages: {
          username: {
             required: "Please Enter A Username",
             remote: 'Username Not Available, Please Choose Another!'
          }
      },
  
  
      submitHandler: function(form)
      {
          var username = $("#username").val();
  
          // Returns successful data submission message when the entered information is stored in database.
          var dataString = 'username='+ username ;
          // AJAX Code To Submit Form.
  
              $.ajax({
                  type: "POST",
                  url: "/account/artistRegistration.php",
                  data: dataString,
                  cache: false
              });
  
          return false;
      }
  
  
  });
  
   });
  </code></pre>
  
  <p>PHP:</p>
  
  <pre><code>&lt;?php
  //      $retval =  'true';
  //      echo 1;
  //      return true;
  //  header('Content-Type: application/json');
  //  echo json_encode($retval);
  echo 'true';
  //  return;
  }
  </code></pre>