Get country code from country full name.
Example: i have an input for country name and i want to convert that country name as country code.
Country Name: India
Country Code : IN
Country Name: United States
Country Code : US
Thanks in advance
Get country code from country full name.
Example: i have an input for country name and i want to convert that country name as country code.
Country Name: India
Country Code : IN
Country Name: United States
Country Code : US
Thanks in advance
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sachin SinghPosted Aug 25, 2021, 8:30 PM
follow my jsfiddle
code is for the country, code, and flag based on your previous question.
Sachin SinghPosted Sep 1, 2021, 5:41 AM
D DeveloperPosted Sep 1, 2021, 5:09 AM
Ganesan CPosted Aug 25, 2021, 6:55 PM
You can check the below links.
Ganesan CPosted Aug 25, 2021, 6:29 PM
If you want coutry code based on country name try below code.
Ganesan CPosted Aug 25, 2021, 6:21 PM
Try below code. It prints list of coutry with code.
Priyanka K SPosted Aug 25, 2021, 11:17 AM
Rajanikant HawaldarPosted Aug 25, 2021, 10:35 AM