HTML -входные цифры.
<!--The tag below uses a regex-->
<input type="text" pattern="[0-9]*" />
<!--The same effect can be achieved by using type number tag-->
<input type="number" />
Wissam