destroy function js code example
Example: destroy method
Javascript12345var table = $('#myTable').DataTable(); $('#tableDestroy').on( 'click', function () { table.destroy();} );
Javascript12345var table = $('#myTable').DataTable(); $('#tableDestroy').on( 'click', function () { table.destroy();} );