title: How to validate Integer value in jquery
body: <p>I need to validate input field, it should be integer(0-100), if max_seat = 5 then min_seat should be less than or equal to max_seats. </p>
  
  <pre><code>&lt;form class="cmxform form-horizontal" id="table_info" name="table_info"  method="post" action=""&gt;                                                       
  &lt;input class="span6 " id="max_seat"  name="default_seats" type="text" /&gt;
  &lt;input class="span6 " id="min_seats"  name="default_seats" type="text" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>and the jquery is looking like this, how to create rules in this type validation, thank you</p>
  
  <pre><code>    $("#table_info").validate(
      {
          rules: {
              min_range :"required integer",
              max_seats:"required integer"
          },
          messages: {
              max_seats: "* Required",
              min_range: "* Required",
          }
      });
  </code></pre>