title: Javascript or jQuery to accept numbers less than 100 for text field
body: <p>In my project I have a text field where I need to accept values less than or equal to 100. In that text field how can I achieve this through javascript or jquery. Somehow I have managed to accept only numbers in text box but how can i restrict it not accept numbers greater than 100.</p>
  
  <p>Here is the code which I have tried to accept only numbers</p>
  
  <pre><code>function isNumber(evt) {
      evt = (evt) ? evt : window.event;
      var charCode = (evt.which) ? evt.which : evt.keyCode;
      if (charCode &gt; 31 &amp;&amp; (charCode &lt; 48 || charCode &gt; 57)) {
          return false;
      }
      return true;
  }
  </code></pre>