Answer the question
In order to leave comments, you need to log in
How to correctly set pattern in inpuy type tel?
Please tell me how to set the pattern correctly in the input form.
Now so
<input type="tel" name="Phone" value="" placeholder="Ваш телефон *" pattern="[0-9]*">
Answer the question
In order to leave comments, you need to log in
Keep in the pattern put this check
^(\+7|7|8)?[\s\-]?\(?[489][0-9]{2}\)?[\s\-]?[0-9]{3}[\s\-]?[0-9]{2}[\s\-]?[0-9]{2}$
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question