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

Cannot select element via jQuery #79

Closed
Leftyx opened this issue Mar 4, 2013 · 2 comments
Closed

Cannot select element via jQuery #79

Leftyx opened this issue Mar 4, 2013 · 2 comments

Comments

@Leftyx
Copy link

Leftyx commented Mar 4, 2013

I've noticed that the behavior is not standard of a select.
It seems to be impossible to choose an element with a value via jQuery.
I've also noticed that if I use an id for the select element a button with the same id is create

you can try it here http://jsfiddle.net/vandalo/vaMmA/

@sosospicy
Copy link

#74 I guess i have the same question with you.
I just check the .js code, and found that selectpicker can respond the "change" event of "select" ( on line 250)

so i use
"
$("#selectid").val("myvalue");
$("#selectid").change();
"
to choose a wanted value. It works for me.

Wish it helps. :)

@Leftyx
Copy link
Author

Leftyx commented Mar 5, 2013

thanks gimmedog, it works.

@Leftyx Leftyx closed this as completed Mar 5, 2013
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