How can I add back the removed table? It is working fine when I load the datatable the first time, but on the second call the datatable is not loaded.
if (report == "one") {
var removeTable = $("#table");
removeTable.remove();
$("table1").datatable({});
if (report == "two") {
var removeTable = $("#table1");
removeTable.remove();
}