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

can't get selected values from counry selection #264

Open
iosdhaya opened this issue Feb 28, 2016 · 4 comments
Open

can't get selected values from counry selection #264

iosdhaya opened this issue Feb 28, 2016 · 4 comments

Comments

@iosdhaya
Copy link

using following code <div id="Sort_country" class="bfh-selectbox bfh-countries" data-country="US" data-flags="true" data-name="country" data-blank="false" data-filter="true">

@HamjalSoftware
Copy link

I use the following jQuery code to get the selected text.

$("[id$='_selectedcountry']").val($('#mycountry .bfh-selectbox-option').text());

Hope this will help.

@simioluwatomi
Copy link

How can I get the full country name and state from this? It is only submitting short codes. "US" instead of "United States"

@RaziaMullan
Copy link

No, It is not. You will get the full names with this code.

@ghost
Copy link

ghost commented Aug 15, 2017

$('.bfh-selectbox-option').first().text()
for getting full Country name

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

4 participants