Trigger jQuery to add events after AJAX-loading table in admin plugin

Question

I created a small WordPress plugin which has some admin-panels. I am using the WP_List_Table class to display some data, but this this HTML-table is ajax loaded. Because of the ajax-loading, jQuery doesn’t add functionality to the table, in particular the toggle functionality in a mobile (responsive) view. The toggle button appears, but clicking it does not show the hidden columns.

Is there a way to trigger the jQuery script after I reload the table?

Thanks!

0
klaaskox 2 years 2022-03-17T05:01:08-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse