Quantcast
Channel: DataTables 1.10 — DataTables forums
Viewing all articles
Browse latest Browse all 2364

Tabbed DataTables Question

$
0
0

Link to test case: https://jsfiddle.net/BeerusDev/ku4hcwfp/99/

Hello,

I am using tabbed DataTables, and was trying to figure out how to change the page title based off of which table is active, I have the following, but it does not work as expected:

if(document.getElementById('tab-table1').active == true){
     document.getElementsByTagName('title')[0].innerText = "Current Task Dashboard";
   alert("Current Tasks is active");
}
if(document.getElementById('tab-table2').active == true){
     document.getElementsByTagName('title')[0].innerText = "Completed Task Dashboard";
   alert("Current Tasks is active");
}

Viewing all articles
Browse latest Browse all 2364

Trending Articles