title: Can I use the range method as a class with the jQuery validation plugin?
body: <p>I have a form that will have input fields added dynamically via JavaScript. Because I don't know about all of the fields beforehand, I can't define a range restriction like this:</p>
  
  <pre><code>$("#myform").validate({
    rules: {
      field: {
        required: true,
        range: [13, 23]
      }
    }
  });
  </code></pre>
  
  <p>Source: <a href="http://docs.jquery.com/Plugins/Validation/Methods/range#range" rel="nofollow">http://docs.jquery.com/Plugins/Validation/Methods/range#range</a></p>
  
  <p>For most validation methods, such as required, I have been adding validation method names as classes like this:</p>
  
  <pre><code>&lt;input type="text" name="text_2" class="required"&gt;
  </code></pre>
  
  <p>Is it possible for me to use range in the same way that I've used required above? Or do I need to create a new method with a regular expression?</p>