html input type number only integer code example
Example 1: html input box integer only
<input type="number" name="someid" />
Example 2: html5 number integer
<input type="number" step="1" />
<input type="number" name="someid" />
<input type="number" step="1" />