title: jQuery validator - Cannot call method 'call' of undefined error - while adding validation dynamically
body: <p>This is my code to update the jQuery validation dynamically. In document load i create the validation. This code is used to update the phone number validation dynamically. After apply this validation, when i enter anything in phone number text box i get cannot call method 'call' of undefined error.</p>
  
  <pre><code> $("#phone").rules("remove");
  
  $("#phone")
    .rules(
    "add",
    {
      required:true,
      minlength:5,
      maxlength:20,
      phoneUS:true,
      messages:{
      required: "Enter company phone number",
      minlength:"Phone number should contain a minimum of 5  characters",
      maxlength:"Phone number should contain a maximum of 20  characters",
      phoneUS:"Enter valid phone number"
    }
  
    });
  </code></pre>
  
  <p>Thanks in advance. How to solve this?</p>