just add “$(“th”).show();” in the end of initComplete … , initComplete: function () { … $(“th”).show(); } , …
Tag: js
How to solve ajax.reload() not working for DataTables in JS File
If you are working with DataTables, you’ve likely encountered that frustrating moment: your data changes in the database, but your table refuses to refresh. You call table.ajax.reload(); and… nothing happens, or worse, you get a console error. Let’s break down why this happens and how to fix it with a single line of code. 1. […]
