I am using Datatable - table plugin for JQuery - as following :
$('#my_table').DataTable({
...,
"aoColumns": [
{"bSortable": false,
render: function (data, type, row, meta) {
return meta.row + meta.settings._iDisplayStart + 1;
}
},
{"bSortable": false},
{"bSortable": false},
{"bSortable": false},
{"bSortable": true, bVisible:false}, /* to hide */
{"bSortable": false},
],
...
});
As one can see in the code,the 5th column is hidden. I want to show this column on a click of button. Can anyone please help me in achieving this?
Thanks in advance.