You should use <input type="number" pattern="[0-9]*">
.
What it does
- Show a numeric keyboard for iOS
- Remove the ability to enter decimal numbers within iOS
What it doesn't do
- Disallow to use decimal number or the
e
character. - Add validation on the regex pattern