I have 6 columns in my jQuery Data table and want to disable sorting for the first and last column.
I have used the following code:
$('#UserDetails').dataTable({
"aoColumns": [
{ "bSortable": false },
null,
null,
null,
null,
{ "bSortable": false }
]
});
This code disables sorting for the last column but not the first.
Can someone please help?