t = $('#example').DataTable();
$('tbody tr').click(function() {
$(this).find('td:last').text('B');
//get back data
var tr = $(this);
var row = t.row(tr); // worked!
console.log(row.data()); // won't work
});
Everything seems to work but when I do row.data(), it got me back the old data before DOM manipulation. It seems like I have to somehow 'update' the datatable. How to manipulate column data programmatically using jquery?