So have a datatable wherein if i click a cell, it redirects me to another page. The problem is I need to store the clicked data for the next page. I wanted to store /tablez.cell(this).data()/ inside a session but I'm not sure if it's possible. Here's my code so far:
var tablez= $('#table').DataTable();
$('#table tbody').on( 'click', 'td', function () {
console.log(tablez.cell(this).data());
window.location.href = "FH_Suppliers_Add.php";
});