Quantcast
Viewing all articles
Browse latest Browse all 82141

How to destroy a datatable & make way for new datatable?

Hi,

I'm using bootstrap-daterangepicker to select a range for which data will be shown in Datatables.
It is working fine.
Problem is when I select a new range in daterangepicker, it provides me with a callback function where I can do my stuff.
In that callback function, I'm calling Datatables again. But since the table is already being created, how can I destroy the previous table and show a new one in it's place?
Kindly help. I'm stuck. :(

Viewing all articles
Browse latest Browse all 82141

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>