Topic: Autocomplete get data from database

Christian Cazzaro pro asked 1 year ago


I want to use autocomplete but it is not convenient for me to insert the list of data in the JS as the list is huge. I would like to retrieve data from my database with Ajax.

The search should find hotels or cities all over the world for a travel booking tool.

Do you have an example I can use?

Thank you

Kamila Pieńkowska staff answered 1 year ago

We do have example of asynchronous search in our docs:

I hope it helped.

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: Pro
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: MDB5 4.3.0
  • Device: MacBook Pro
  • Browser: Chrome
  • OS: iOS
  • Provided sample code: No
  • Provided link: No