title: Number range restriction on a field using js
body: <p>Please i have a field that enables user to enter numeric field. Thus,    </p>
  
  <pre><code>&lt;input class="form-control input-sm" id="first" name="first"  onkeyup="calculate();javascript:checkNumber(this);"  $type="text" value="&lt;?php echo (isset($cur)) ? cur-&gt;FIRST  : 'FIRST' ;?&gt;"&gt;$    
  </code></pre>
  
  <p>I want a number limitation let say from 0-30 on that field where by you can type number above 30. </p>
  
  <pre><code>&lt;input class="form-control input-sm" id="first" name="first"  onkeyup="calculate();javascript:checkNumber(this);"  type="text" value="&lt;?php echo (isset($cur)) ? $cur-&gt;FIRST  : 'FIRST' ;?&gt;"&gt;
  </code></pre>