We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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?
The text was updated successfully, but these errors were encountered:
I found a hacky way, but it's not a good idea:
$("body").on('DOMSubtreeModified', ".dropdown-toggle span", function(e, data) { console.log(e.target.innerText); });
Sorry, something went wrong.
Another possibility is to add a specific click event on the items.
$('#idioma .dropdown-menu li a').click(function (e) { e.preventDefault(); console.log($(this).data('bsVal')); });
No branches or pull requests
Here is my code:
But the onSelect event never get fired. Any idea?
The text was updated successfully, but these errors were encountered: