title: JQuery validate not working after modifying rules
body: <p>I have two html elements. One is a select box and under it is a text input box. If I change the select box above, then I want to change the JQuery validate rules for the text input box. The code below seems to run through correctly (labels are changed), but the validation doesn't occur on a focusout or a clickout event like I would expect it to.</p>
  
  <p>Here is my code that changes the rules when I change a select box value. Am I missing something?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$('#Countries.selectpicker').on('change', function() {
    $("#Location").val('');
    var selected = $(this).find("option:selected").val();
    if (selected != "0") {
      //alert("other country selected");
      $(".locationLabel").text("City");
      $("#Location").attr("placeholder", "e.g. London");
      $("#Location").attr("type", "string");
      $("#Location").rules("remove");
      $('#Location').rules("add", {
        required: true,
        minlength: 3,
        maxlength: 40,
        messages: {
          required: "Required input",
          minlength: jQuery.validator.format("Please, {0} characters are necessary"),
          maxlength: jQuery.validator.format("Please, {0} characters are necessary")
        }
      });
    } else {
      //alert("us selected");
      $(".locationLabel").text("Zip Code");
      $("#Location").attr("placeholder", "e.g. 94901");
      $("#Location").attr("type", "number");
      $("#Location").rules("remove");
      $('#Location').rules("add", {
        required: true,
        minlength: 5,
        maxlength: 5,
        messages: {
          required: "Required input",
          minlength: jQuery.validator.format("Please, {0} characters are necessary"),
          maxlength: jQuery.validator.format("Please, {0} characters are necessary")
        }
      });
    }
  });</code></pre>
  </div>
  </div>
  </p>