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

onSelect event doesn't work #42

Open
shubham-ralli opened this issue Mar 11, 2022 · 1 comment
Open

onSelect event doesn't work #42

shubham-ralli opened this issue Mar 11, 2022 · 1 comment

Comments

@shubham-ralli
Copy link

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);
}

@Servibe
Copy link

Servibe commented Nov 16, 2023

Try adding a specific click event on the items.

$('#idioma .dropdown-menu li a').click(function (e) {
    e.preventDefault();

    console.log($(this).data('bsVal'));
  });

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

2 participants