input type="tel" - only numbers

Hey. Tell me how to make it so that in the field input type="tel" could you enter only numbers?

Without knowing more information such a geo location etc I would look into the pattern attribute and also a keyup jquery function for more advanced methods.

It is resolved. I added to the element pattern such a regular expression

(\s*)?(\+)?([- _():=+]?\d[- _():=+]?){10,14}(\s*)?

This allowed you to make a phone number field

Nice well !