Clearing State on Page Reload
Clearing State on Page Reload
smarthomes
Posts: 14Questions: 5Answers: 0
I would like to clear the state of a table on page reload. I use a lot of ajax for filtering and reloading the table.
I think the answer is to delete the cookie, but I am unable to find documentation that works.
This discussion has been closed.
Answers
I think I have it:
localStorage.removeItem( 'DataTables_proposal_table_/proposal.cfm' );
Does this make sense? Better way?