Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Programmatically set the selected country at runtime #26

Open
ghost opened this issue Mar 8, 2017 · 1 comment
Open

Programmatically set the selected country at runtime #26

ghost opened this issue Mar 8, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Mar 8, 2017

I can prgrammatically set a country in this way:

$('#select_country').attr('data-selected-country','CN');

before issue $('#select_country').flagStrap();
After that I'm not able to change the current country via jQuery anymore.

Would you please help me to understand how to?

@mrhewitt
Copy link

Just FYI in case anyone else has this issue, I have created a pull request that addresses this, #35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant