All Countries Drop Down List | HTML Select Country Name
List of all countries name, ISO code, phone code, continent name, capital name, code for HTML drop-down list. Translated Country names Arabic, French, and other languages.
Country Names HTML Drop Down Select
Names of countries can be translated into other languages. To change the language, select the language from the list of languages below
You can set the option value to the country name, alpha-3, phone code, continent, capital, and currency name.
Set the options value
Create A Custom Selected Country Names For Bootstrap or HTML Select.
Select the country names you want to create the country name drop down select. The codes of the selected country names are shown below. You can change the code for the Bootstrap country drop-down code or for the HTML select.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Great work but why you use «data-countryCode» attribute ?
Great work but why you use «data-countryCode» attribute ?
You can get it with javascript
Great work but missing countries
it is one country now no south and north,correct one below ;
data-country code is from bootstrap?
Czech Republic is +420 and not +42 🙂
Thanks, this is very helpful
why would someone hardcode this when there is something like this https://github.com/jackocnr/intl-tel-input
Thank you very, very, very, very much for this code. This helped so much. I can’t explain in words.
Τhere is only one Cyprus (Republic of Cyprus +357). Neither South or North
If you need country code as value
Yemen is not divided into two countries, it’s only one country and the correct phone key is (+967). also you need to add Palastine (PS) (+970)
This is a code snippet for HTML Select country code list with flags. It is based on powerful twilio’s API. It is plug and play, everything is hosted on CDN. Its usage is simple, simply add this in the of your web page «head» tag.
var input = document.querySelector("#phone"); window.intlTelInput(input, < separateDialCode: true >);
var input = document.querySelector("#phone"); window.intlTelInput(input, < // show dial codes too separateDialCode: true, // If there are some countries you want to show on the top.// here we are promoting russia and singapore. preferredCountries: ["ru", "sg"], //Default country initialCountry:"sg", // show only these countres, remove all other onlyCountries: ["ru", "cn","pk", "sg", "my", "bd"], // If there are some countries you want to execlde.// here we are exluding india and israel. excludeCountries: ["in","il"] >);
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
An HTML country code selector
License
etjossem/country-codes-html
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
International Phone and Country Codes (HTML)
A simple select element, containing an option for each country in the world. The values for each are set to each international calling code. Useful for an integration with Authy and Twilio, or any other service that accepts international phone codes.