O
O
Orbite2018-09-13 14:31:24
JavaScript
Orbite, 2018-09-13 14:31:24

How to make 10 digit number validation JS, HTML?

Good day, tell me how you can validate a phone number in a 10-digit format, without 8 and +7.
That is, the user enters +7ХХХХХХХХХ or 8ХХХХХХХХХ, then it will give an error message.
At the same time, there are numbers whose operator code can be 800, 804, etc. (toll free numbers), that is, they start with 8

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Evgeniev, 2018-09-13
@windsteppy

You can just google

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question