Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Autocomplete get data from database

Christian Cazzaro pro asked 2 years 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


Kamila Pieńkowska staff answered 2 years 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

  • 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