Here is my code:
$('#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: function(value, element) {
// doesn't work
console.log('select!!');
},
placeholder: {
value: "",
text: "Please select a country"
}
});
But the onSelect event never get fired. Any idea?
Here is my code:
But the onSelect event never get fired. Any idea?