Reseting Search is Not Working

Reseting Search is Not Working

mdillonmdillon Posts: 1Questions: 1Answers: 0

I'm working on a page with two separate datatables that can be filtered by the default search boxes as well as dynamically generated checkboxes. The filtering works fine, but I also have a reset button on the form that clears all checkboxes and is supposed to reset the tables.

Here is the current line of code that is supposed to reset the table:

jQuery('##datatable1').dataTable().api().column(0).search( '', false, true ).draw();

Column 0 is just contains a 1-2 digit number. I have tried multiple scenarios involving a blank search like that, this is just the most recent. No matter what I do it results in the full table being displayed except for a small group of rows containing either parenthesis or an ampersand in the column that was originally filtered using the checkboxes. The other rows only contain normal alphabet characters and spaces.

I'll be happy to provide any other needed information. Thanks for any and all help!

This discussion has been closed.