Topic: Datatable does not work

Ivan Incera (Mundo gamer) pro asked 1 year ago


Good Morning

I'm making a datatable, but the search function doesn't work for me, I don't know if I'm doing something wrong

https://mdbootstrap.com/snippets/jquery/ivan_incera_mundo_gamer/2957574#js-tab-view

Can you help me, please?


Marcin Luczak staff answered 1 year ago


Hi,

I've created a snippet based on your code with the async call for data from the JSON placeholder and it works. https://mdbootstrap.com/snippets/jquery/marcin-luczak/2959136

You have to make sure you initialize Datatable after all the data from your PHP script is populated into DOM, otherwise, it might be not reachable for the Datatable scripts.

Regards, Marcin



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 jQuery
  • MDB Version: 4.19.1
  • Device: no
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: Yes