[FEATURE REQUEST] Search events and methods.
I really love this plugin, and I'm using it for every select box in my application, but now I'm working on something that involves filtering through 10,000+ items.
Adding ajax search support is probably outside the scope of this project, but the following items should be easy to implement and would allow one to extend that kind of functionality themselves.
Events
- Text input on search box. - e.g.
$('#item').on('search.input.bs.select', function(){}) - Before search starts. - e.g.
$('#item').on('search.initiated.bs.select', function(){}) - After search finished (w/results). - e.g.
$('#item').on('search.finished.bs.select', function(){})
Methods
- Access to elements.
-
$('#item').selectpicker('search.input).val()
-
- Manually initiate/update a search.
-
$('#item').selectpicker('search.update')
-
This is what i want to see in this project! Awesome feature. Will be cool, if there is an option to add button after the "no results" message. This button could call custom event passed on input with mentioned option.
Right now I was looking for this feature. It would be great if it is implemented in the future
same :(
This feature would be great. Maybe with an optional button to "Load All Values" too, like this:

Use this simple code and enjoy :D
$(document).on("change","#select-picker",function(){ $search_value="blob blob"; $("button[data-id='"+$(this).attr("id")+"']").next().children(".bs-searchbox").children("input[type='search']").val($search_value).trigger('propertychange'); }); // Bootstrap-select v1.13.9
Tested and working in v1.13.9
Fixed here- https://github.com/snapappointments/bootstrap-select/commit/94c0edb3adcfaacd4293e15e05a3c1a060e84948
thanks @yaakovLowenstein for helping with triage!
@NicolasCARPi This hasn't been implemented yet.
Related issue: https://github.com/snapappointments/bootstrap-select/issues/2000 Might be considered to be tackled as part of this issue (if hasn't been already).