Topic: Bootstrap Select Autocomplete

Espen Rønning priority asked 4 years ago

Does MDB support og plan to support Bootstrap Select Autocomplete as documentet here:

Mateusz Łubianka staff commented 4 years ago

Hi @Espen Rønning,

Here you can find our Autocomplete component:


Espen Rønning priority answered 4 years ago

This is my form: enter image description here

This is the elements behind the mdbselect: (Please note that I've modified mdb.js to give an id to the search-input) enter image description here

And here's the keyup-function I've added to the search-field. The keyup is never triggered.:


theTable = new table("reklamasjon", "REKLNR", "reklamasjoner.php", true);

var ajaxActive = false;
var selectSearch = $("#select-search-KUNDNR");
    if(this.value.length > 2 && !ajaxActive){
                    getKunder   :   "",
                    isAjax      :   1,
                    search      :   this.value
                function(data, status){
                    ajaxActive = false;
                    var obj = JSON.parse(data);
                        destroy: true
                    $.each(obj.selectValues, function(key, value) {
                          .append($('<option>', { value : key })



Mateusz Łubianka staff commented 4 years ago

Can't you use 'keyup' function on autocomplete input? $('#form-autocomplete').keyup(function(){ console.log('hi') })

Espen Rønning priority commented 4 years ago

'keyup' works fine on a mdbAutocomplete but this is for a customer lookup. My ajax returns an array with {value: "", text: ""}. I want to display while the field contains custno. A select works great for this.

Anyway, it works quite well using bootstrap's basicAutoSelect and wraping it in a "md-form form-group" div.

I have some issues with user exiting the field to quick using Tab, but I'll stick with this soloution for the moment.

Mateusz Łubianka staff commented 4 years ago

So now it works as you intended?


Espen Rønning priority answered 4 years ago

Thanks Mateusz, I'm aware of MDBootstrap Autocomplete component. The functionality I'm looking for is autocomplete on a select-tag like the one found in bootstrap autocomplete using ajax to dynamically update the select options.

At the moment I'm trying to emulate this functionality using mdbselect with "searchable" and attaching a keyup-function to the search-input, but no luck so far.


Mateusz Łubianka staff commented 4 years ago

Can you show how you try to do it? Here you can find a support about autocomplete and ajax:


Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB jQuery
  • MDB Version: 4.10.0
  • Device: Any
  • Browser: Any
  • OS: Any
  • Provided sample code: No
  • Provided link: Yes