Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

255
Visualizações
How can I check a valid user's phone number in JavaScript?

I am creating an input form on a web page. That's on field in phone number get in user.now How can I check now if the user's phone number is a wallet? my user lives in bangladesh.

about 4 years ago · Juan Pablo Isaza
3 Respostas
Responde à pergunta

0

you can use regex to check mobile phone:

 ^\+?(88)?0?1[3456789][0-9]{8}\b
about 4 years ago · Juan Pablo Isaza Relatório

0

If you are trying to implement real world project phone validation then there are two ways I know that can be used :-

After basic regex check on the phone number, you can.....

(i) setup an OTP based system so that user has to fill OTP on your page that was sent to his phone number to validate the number.

(ii) use a phone number validator api if you just want to check if the number is correct or not and belongs to a particular country. There are many free web api's present that you can use in your project.

about 4 years ago · Juan Pablo Isaza Relatório

0

You can use this function for that:

function validatePhone(phone){
    let p = ^\+?(88)?0?1[3456789][0-9]{8}\b;
    return p.test(phone);
}
about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda