How do I get the object or the value of a tr with DataTable

1
function excluirDadosTabela (){
    $('#gridtabelaDocumentos').on('click', '.excluir', function(e){
        e.preventDefault();
        var teste = $('#gridtabelaDocumentos').DataTable().row($(this).parents('tr')).data();
        console.log(teste);
    });
}

DataTable() ... forward does not work!

    
asked by anonymous 09.11.2017 / 16:36

1 answer

0

Try

var teste = $('#gridtabelaDocumentos').DataTable().row('seuid').data();
    
20.11.2017 / 19:42