Number input type that takes only integers?

The best you can achieve with HTML only (documentation):

<input type="number" min="0" step="1"/>

Leave a Comment