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 too with jquery and the code below is not working. What am I doing wrong below?
var NovaLinha = [usuario,email,senha,ativo,acao];
$('#tabela').DataTable().row('#'+id).data(NovaLinha).draw();