Question: how to get selected row index in datatable?
Answer: 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.