flagstrap icon indicating copy to clipboard operation
flagstrap copied to clipboard

A lightwieght jQuery plugin for creating Bootstrap 3 compatible country select boxes with flags

Results 23 flagstrap issues
Sort by recently updated
recently updated
newest added

jQuery('#flagstrap3').flagStrap({ countries: { "US": "USD", "EU": "EUR", "GB": "GBP", "AU": "AUD", }, inputName: 'country', labelMargin: "20px", scrollable: false, scrollableHeight: "350px", onSelect: function(value, element) { alert(value); }

Here is my code: ```JS $('#options').flagStrap({ countries: { "AU": "Australia", "GB": "United Kingdom", "US": "United States" }, inputName: 'country', buttonSize: "btn-lg", buttonType: "btn-primary", labelMargin: "20px", scrollable: false, scrollableHeight: "350px", onSelect:...

Please How do I Capture the selected value say using php or jquery. For example if the country is usa how do i get USA insted of just us

I think if we were to also use autocomplete with flagstrap where you could start typing the name of the country and it would sort it. That would be a...

is it possible to pre-select user's country based on an external ip provider like https://ipinfo.io/pricing ?

I would love to see a feature where you could move x numbers of countries to the top. For example, let's just say that we have 10 countries that most...

… and a toggle() on the OL list when an item is clicked. Minor other changes, like switching all 'var's to, the ES6 standard, 'let' is also added. For some...

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...

Added the ability to change the value of the widget after it has been created by passing a string (country code) value to the plugin instead of an object