In my Datatables, I have used bVisible : false property to hide column. But I want to get data from all columns whether it is hidden or not on click event in jQuery. How can I get all hidden column data?
This is the way I have hidden 5th column:
$('#abc').dataTable( {
"bDestroy": true,
"aaSorting" :[],
"bAutoWidth": false,
"aoColumns": [ null,null,{ "sType": "numeric-comma" },null,{"bVisible": false},null,null,null,null,null,null,null,null ]
});
I am getting value of that column using this code:
$(this).closest('tr').find("#xyz").text();
Here xyz is required column td id.