title: JQuery validation plugin maxlength?
body: <p>I am using JQuery validation plugin. I want to specify <code>maxlength</code> for one of the fields.It can be specified as below.</p>
  
  <pre><code>rules: {
     Message: {
        required: false,
        maxLength: 200
     }
  }
  </code></pre>
  
  <p>But instead of defining the rules externally, i want to specify the rules inside html input code</p>
  
  <p>Similar to :</p>
  
  <pre><code>&lt;input type="text" name="AssistanPhone" value="" class="required"  /&gt;
  </code></pre>
  
  <p>In above example "required" is specified through class. Similarly how can i specifiy maxlength which can be recognized by jquery plugin and gives error message if length exceeds?</p>
  
  <p>Thanks!</p>