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

179
Views
How can I make Turkey the default country when choosing a country code for a phone number?

This script allows me to pick country code when I want to write my number:

const phoneInputField = document.querySelector("#inpMobilePhone");
const phoneInput = window.intlTelInput(phoneInputField, {
    utilsScript:
        "https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.8/js/utils.js",
    });
}

This html is my phone input and the reason type=number because when I change that to type=tel it's allows me to write text to:

<div class="form-group">
    <input type="number" pattern="[0-9]{3}-[0-9]{2}-[0-9]{3}" style="width:168%" 
        class="form-control form-control-sm" placeholder="@localizer["MobilePhone"]" 
        id="inpMobilePhone" name="MobilePhone" required />
</div>

This is the first thing i saw i want to change this:

enter image description here

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Check the initialCountry option from the documentation of intel-tel-input library.

about 4 years ago · Juan Pablo Isaza Report

0

Set the initial country selection by specifying its country code.

const phoneInput = window.intlTelInput(phoneInputField, {
    initialCountry: "TR",
    utilsScript:
        "https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.8/js/utils.js",
    });
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!