PHP AJAX Add Serial Number Column To Datatables

Опубликовано: 08 Октябрь 2024
на канале: Tech On Tech
5,656
40

In this Video I will show php ajax add serial number column to datatables.

Datatables index column - https://datatables.net/examples/api/c...

Add this -

"columnDefs": [ {
"searchable": false,
"orderable": false,
"targets": 0
} ],
"order": [[ 1, 'asc' ]],


t.on( 'order.dt search.dt', function () {
t.column(0, {search:'applied', order:'applied'}).nodes().each( function (cell, i) {
cell.innerHTML = i+1;
t.cell(cell).invalidate('dom');
} );
} ).draw();


★★★ Thanks For Watching ★★★

★★★ Please like share and subscribe ★★★

Background Music -
Music: Nimbus by Eveningland
Video Link:    • Eveningland - Nimbus [No Copyright Mu...