Open iosdhaya opened 8 years ago
I use the following jQuery code to get the selected text.
$("[id$='_selectedcountry']").val($('#mycountry .bfh-selectbox-option').text());
Hope this will help.
How can I get the full country name and state from this? It is only submitting short codes. "US" instead of "United States"
No, It is not. You will get the full names with this code.
$('.bfh-selectbox-option').first().text() for getting full Country name
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">