-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Setting val
doesn't work
#1167
Comments
Update: I see this error too. Tried to reproduce and couldn't! Then I checked bootstrap-select version at my server and at silviomoreto.github.io. Bug is there with version 1.6.3, but with version 1.6.5 all works fine. Check bootstrap-select version, @shaneparsons |
I am sorry I hurry. I see very strange thing. If I do this But If I save this file from CDN to my project directory and do this |
Well.. I'm confused. In Firefox, if I open page first time: no errors. All works as expected. But if I refresh page, I see error. In Chrome all works fine. Problem is, I can't reproduce it on jsfiddle. |
Finally I found what was the problem. It's not the browser and not the library error. I've created fiddle: http://jsfiddle.net/nwd6gm6n/6/ but if you'll try to reproduce this situation, just copy source from fiddle to local html-file. Don't know why, but I can't get an error with jsfiddle. |
Replace the conventional code:
For this:
|
I have same issue seems .val() not working for me as well.I am using ng-repeat in HTML and i tried following options nothing works. Appreciate any help. $('#state-search').selectpicker('selectAll'); |
+1 |
See guidelines for contributing.
|
I tried the following and it works.
@D-Skywalker 's suggestion did not work for me, and I built on that to include additional refresh. I believe there is some sort of delay induced by |
Can somebody please provide an example of this feature not working? I would love to get this figured out. |
Same
Dont have time to introspect, but I think this error came when the |
Instead of posting "+1", please provide an example. Here's a link to a bootstrap-select playground: http://silviomoreto.github.io/bootstrap-select/playground/. |
same probleme tried all solutions above
|
@yokidara01 This code is realy confused, there are many things out from scope like arrayOfArrayOfvalues. I sugest you try use one of codes showed here in isolation before run your complete code. |
example:
refresh works, select value updates, but it doesnt show it visually(the old value displayed) |
After weeks with the same error I change the bootstrap-select.js file in my local server and selectpicker works. |
Using the following
$('.selectpicker').selectpicker('val', '1');
to preset the value of my select is returning the following error.Uncaught TypeError: e.stopPropagation is not a function
The error is pointing to line 258 in bootstrap-select.js if it helps.
i.e.
The text was updated successfully, but these errors were encountered: