how to get selected row index of datatable in jquery?
on( 'click', 'td', function () { var tr = $(this). closest("tr"); var rowindex = tr. index(); alert(rowindex); }); this way you'll have the index value of the row.