How to make a textbox to accept positive numbers only code example Example: html input integer and positive <input type="number" min="0" step="1" />