Instead of mouse click, switchCountry() API can be used to change currently selected country. This
gives developer more flexibility.
Parameter: countryCode - Country/area codes that conforms to ISO 3166 standards
![](../../assets/images/switchCountry1.jpg)
// switch selected country to "US"
controller.switchCountry("US");
controller.switchCountry("US");
![](../../assets/images/switchCountry2.jpg)