allow only integer in textbox html code example
Example 1: html input integer and positive
<input type="number" min="0" step="1" />
Example 2: html input box integer only
<input type="number" name="someid" />
<input type="number" min="0" step="1" />
<input type="number" name="someid" />