Skip to content

Select an option using a computed value #101

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

Closed
rouge973 opened this issue Oct 10, 2013 · 1 comment
Closed

Select an option using a computed value #101

rouge973 opened this issue Oct 10, 2013 · 1 comment

Comments

@rouge973
Copy link

Hi all,

I'm using bootstrap-combobox.js v1.1.5 and cannot select an option using a value abtaind from a DB.

My solutions doesn't work

$("#mittente2 option").each(function () {
if (msg[10] == $(this).html()) $(this).attr('selected', 'selected');
});

$("#mittente2 option").each(function () {
if (msg[10] == $(this).html()) $(this).prop('selected',true);
});

Jquery 1.8.2

Any solutions?

Thanks a lot

@rouge973
Copy link
Author

ok, found the answer in Issue #75

Thanks

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

1 participant