How I get the object or value of a tr with Datatable

Asked

Viewed 51 times

1

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

of DataTable() ... forward does not work !

1 answer

0


Tries

var teste = $('#gridtabelaDocumentos').DataTable().row('seuid').data();
  • Vlw Maycon, solved my problem, thank you !

Browser other questions tagged

You are not signed in. Login or sign up in order to post.