1
Is there any library that validates the number typed by the user?
Example:
If the user types (11)11111-1111 or (22)2222-2222 and so on, if you type something similar, it shows that the phone is invalid.
Is there a library with this or some script where I can work up?
If you want to validate only on the frontend, the PHP tag is unnecessary
– Jéf Bueno
you can have a look at that answer http://answall.com/a/15126/26133
– Jeferson Almeida