Table won't reload

Table won't reload

TheNerdy97TheNerdy97 Posts: 25Questions: 6Answers: 1

I have this function that unchecks all checked boxes until here it works flawlessly, but when it should reload the data table, it won't work and checkbox values are still shown on the table.

this is the code

      const filters = document.getElementsByName("Characters_Filter");
      for (let i = 0; i < filters.length; i++) {
        if (filters[i].type = "checkbox") {
          filters[i].checked = false;



this is a live example

I know that dataSrc isn't an ajax but it's for the sake of example.

This question has an accepted answers - jump to answer


  • kthorngrenkthorngren Posts: 19,140Questions: 26Answers: 4,537
    Answer ✓

    Using draw() causes Datatables to update the table's display by applying the current sorting, searching and paging. This is all client side unless you are using server side processing - which your test case doesn't appear to have. If you want to refresh the data from the server use ajax.reload() instead.

    If this doesn't help the please provide the steps to show the issue in your test case.


  • TheNerdy97TheNerdy97 Posts: 25Questions: 6Answers: 1

    I was going in the wrong way, instead of reloading the table, I was supposed to do:

     table.fnfilter('', 3) 

    solved the problem

Sign In or Register to comment.