I'm making use of an instance of Datatables JS.
I've created 2 buttons that filter on two different values within one column as follows :
$('#published').click(function() {
table.column(2).search('Published').draw();
});
$('#concept').click(function() {
table.column(2).search('Concept').draw();
});
On click on these buttons, the table shows the value that meets the .search, just as expected.
Now I've tried to create an "all" button, so the table shows me all records again (a kind of reset to all records). Unfortunately, I'm not getting that to work. I've tried to re-initialize the table but I'm unable to show all results again without refreshing.
Unfortunately, JS is not my strong suit.
Any help would be very much appreciated!
Thanks in advance,