I am using the jQuery DataTables plugin to sort the table fields. My question is: how do I disable sorting for a particular column? I have tried with the following code, but
Here is the answer !
targets is the column number, it starts from 0
targets
$('#example').dataTable( { "columnDefs": [ { "orderable": false, "targets": 0 } ] } );