title: jQuery Validation Plugin query
body: <p>I have been trying to add validation to the phone field so it would accept only 10 to 14 digits (other better UK phone validation methods are also welcome). </p>
  
  <p>I am using jQuery Validation Plugin.</p>
  
  <pre><code>&lt;form class="form" id="lg.callback.form" action="[[~[[*id]]]]" method="post"&gt;
      &lt;input type="hidden" name="nospam:blank" value=""/&gt;
      &lt;label for="name"&gt; Name: &lt;span class="error"&gt;[[!+fi.error.name]]&lt;/span&gt;&lt;/label&gt;
      &lt;input id="name" type="text" name="name" value="[[!+fi.name]]" required /&gt;
      &lt;label for="phone"&gt; Phone: &lt;span class="error"&gt;[[!+fi.error.phone]]&lt;/span&gt;&lt;/label&gt;
      &lt;input id="phone" type="text" name="phone" value="[[!+fi.phone]]" class="phone"/&gt;
  
      &lt;input type="submit" value="Request a call back"/&gt;
  
  &lt;/form&gt;
  
  &lt;script&gt;
      $("#lg.callback.form").validate();
  &lt;/script&gt;
  </code></pre>
  
  <p>I did try the following:</p>
  
  <pre><code>$("#lg.callback.form").validate({
     rules: {
       phone: {
         required: true,
         digits: true,
         minlength: 10,
         maxlength: 14
       }
     }
  })
  </code></pre>
  
  <p>but it does not work as expected.</p>
  
  <p>Advice would be appreciated.</p>