title: jQuery Validate formatting rules for range limits
body: <p>I have a large table of text inputs for which a set of custom attributes are being created on the server side.  These attributes included "min" and "max" which were used with the jQuery Validate plugin.</p>
  
  <p>Due to a change in the requirements (of course), we now have to update the attributes to a range type, however the Validate plugin isn't interpreting the formatting of the range rule correctly (or perhaps it's more accurate to say I'm not formatting the rule correctly) and now I have problems.</p>
  
  <p>The generated output for the input boxes looks like this:</p>
  
  <pre><code>&lt;input type="text" producttype="CCC" code="ESTFEE" range="460, 500" class="currency required" id="txtEstFeeCCC" value="460.00" name="txtEstFeeCCC"&gt;
  </code></pre>
  
  <p>I've also tried the following:</p>
  
  <pre><code>&lt;input type="text" producttype="CCC" code="ESTFEE" range="[460, 500]" class="currency required" id="txtEstFeeCCC" value="460.00" name="txtEstFeeCCC"&gt;
  </code></pre>
  
  <p>In either case, the message returned is either:</p>
  
  <blockquote>
    <p>Please enter a value between 4 and 6.</p>
  </blockquote>
  
  <p>or</p>
  
  <blockquote>
    <p>Please enter a value between NaN and 4</p>
  </blockquote>
  
  <p>respectively.  Neither of which has anything to do with the 460 - 500 range in question.</p>
  
  <p>The jQuery code calling the validate function is just the vanilla call:</p>
  
  <pre><code>$("#btnSave").click(function() {
      validator.form();
      ... 
      });
  </code></pre>
  
  <p>How should an input attribute for jQuery Validate range be formatted so that the correct number range limit is displayed?</p>