3
I have the following code working to add a row to the table dynamically
var NovaLinha = [usuario,email,senha,ativo,acao];
NovaLinha.id = retorno;
$('#tabela').DataTable().row.add(NovaLinha).draw();
now I want to change it also with jquery and the code below is not working. What I am doing wrong below?
var NovaLinha = [usuario,email,senha,ativo,acao];
$('#tabela').DataTable().row('#'+id).data(NovaLinha).draw();