input tel help js
https://codepen.io/AnthonyBAC/pen/yLRQvNV code
hello !! I was trying to make this input, and everything turned out fine until I saw that the cell phone contact number in the input changes it to the landline phone number (home) of my country, what i need to do to make show the +56 number instead of (2)

2 Replies
There is far too much code in your codepen to be able to debug this.
Try to re-create just the relevant code, ie. the phone number input field and only the related JavaScript that is attempting to extract the dialling code from your unordered list of all the countries.
okay 🙂 i already clean the code only for the input and the script