title: jquery validation plugin, how to add multiple custom messages in custom method
body: <p>I am using <a href="http://docs.jquery.com/Plugins/Validation" rel="nofollow">jquery validation plugin</a> </p>
  
  <p>I added a custom method using <a href="http://docs.jquery.com/Plugins/Validation/Validator/addMethod" rel="nofollow">addmethod</a> which in turn calls another method to check for valid <code>UK telephone number</code></p>
  
  <p>here is my code (simplified):</p>
  
  <p><strong>html</strong></p>
  
  <pre><code>&lt;form id="myform"&gt;
    &lt;label for="field"&gt;Required, telephone: &lt;/label&gt;
    &lt;input class="required" id="field" name="field" /&gt;
    &lt;br/&gt;
    &lt;input type="submit" value="Submit" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p><strong>jquery</strong></p>
  
  <pre><code>$(document).ready(function(){
      $("#myform").validate({
          rules:{
              field:{
                  required:true;
                  UKTelNumber:true
              }
          }       
      });
  });
  
  jQuery.validator.addMethod("UKTelNumber", function(value,element) {
  
      if (!checkUKTelephone (value)) {
          alert (telNumberErrors[telNumberErrorNo]);
          return false;
      }
      else {
          return true
      }       
  },jQuery.validator.format(telNumberErrors[telNumberErrorNo]));
  </code></pre>
  
  <p>The function <strong><code>checkUKTelephone</code></strong> sets the value of var <strong><code>telNumberErrorNo</code></strong> according to the type of error.
  All the error messages are there in an array <strong><code>telNumberErrors</code></strong>.</p>
  
  <p>Now my requirement is that how to show those error messages that is being alerted now.</p>
  
  <p>passing <code>jQuery.validator.format(telNumberErrors[telNumberErrorNo])</code> as message (third option) of <a href="http://docs.jquery.com/Plugins/Validation/Validator/addMethod" rel="nofollow">addMethod</a> is not helping.</p>
  
  <p>I also tried passing only this <code>telNumberErrors[telNumberErrorNo]</code> but its showing only one message every time i.e message contained in <code>telNumberErrors[0]</code></p>
  
  <p>plz help me</p>
  
  <p>Thanks in advance</p>