Topic: Autocomplete get data from database

Christian Cazzaro pro asked 4 months ago


Hi

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


kpienkowska staff answered 4 months ago


We do have example of asynchronous search in our docs: https://mdbootstrap.com/docs/standard/forms/autocomplete/#section-async-search

I hope it helped.



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue

  • User: 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