js this.destroy 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();} );