title: JQuery Validator Plugin Phone Validation
body: <p>I'm having issues with the jquery validator validating phone numbers. So in a form where I have an input for phone number, I use jquery's additional methods to validate the phone. Here's the code:</p>
  
  <pre><code>&lt;!DOCTYPE HTML&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
  &lt;title&gt;stuff/title&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="https://ajax.aspnetcdn.com/ajax/jquery.validate/1.9/jquery.validate.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="https://ajax.aspnetcdn.com/ajax/jquery.validate/1.9/additional-methods.min.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;script&gt;
  $(document).ready(function(e) {
      var val = $('#everything').validate({
          onkeyup: false,
          errorClass: "req_mess",
          ignore: ":hidden",
          rules: {
              phone: {
                  required: true,
                  minlength: 10,
                  phoneUS: true
              }
          },
          messages: {
              phone: {
                  required: "Please enter your phone number",
                  phoneUS: "Please enter a valid phone number: (e.g. 19999999999 or 9999999999)"
              }
          }
      });
  });
  &lt;/script&gt;
  &lt;form name="everything" id="everything" action="Private/Insert.php" method="post" style="display:none;" &gt;
      Phone Number: &lt;input type="text" name="phone" id="phone"/&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>And the database ends up looking like this for the phone number column:<br>
  <img src="https://i.stack.imgur.com/NGcD4.png" alt="Phones"><br>
  Sometimes it inserts the full phone number (crossed out in red) properly, but then sometimes it just inserts 3 digits. I don't know why. Is this something to do with Internet Explorer maybe? Has anyone come across this problem? Does anyone know why this is happening? Here's the entirety of the jquery validation code if <a href="http://pastie.org/5414367" rel="noreferrer">anyone needs it</a></p>