$(document).ready(
function
() {
var
t = $(
'#example'
).DataTable( {
"columnDefs"
: [ {
"searchable"
:
false
,
"orderable"
"targets"
: 0
} ],
"order"
: [[ 1,
'asc'
]]
} );
t.on(
'order.dt search.dt'
t.column(0, {search:
'applied'
, order:
}).nodes().each(
(cell, i) {
cell.innerHTML = i+1;
} ).draw();