Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

261
Vistas
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 Respuestas
Responde la pregunta

0

you can use regex to check mobile phone:

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

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 Denunciar

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda