title: jQuery - How to dynamically add a validation rule
body: <p>I'm trying to dynamically add a validation rule to some dynamic controls:</p>
  
  <pre><code>$("input[id*=Hours]").rules("add", "required");
  </code></pre>
  
  <p>However this line gives me the following error:</p>
  
  <p><strong>$.data(element.form, "validator") is null</strong></p>
  
  <p>Defining rules the static way with the validate function works fine. What am I doing wrong?</p>
  
  <p>Thanks,
  Justin</p>