Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

254
Views
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 answers
Answer question

0

you can use regex to check mobile phone:

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

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 Report

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!