.row() is not a function
.row() is not a function
Hi..
I am using datatables and I try to delete a row, like this:
$('#table').row('.id').remove().draw(false);
I get the error
.row() is not a function....
I have search about the problem and it is mentioned that the problem is because one must use (#table).DataTable({}) instead (#table).dataTable({}), but although I do that I get the error again.
I declare my table like this:
$('#tabla_nombre').DataTable({});
and I have tried with this ways
-$('#tabla_nombre').DataTable();
-$('#tabla_nombre').dataTable();
-$('#tabla_nombre').dataTable({});
Anyone know a solution or could help me saying me mi error?
Thanks and sorry for my bad English.
Answers
Per the forum rules, please link to a test case showing the issue.
It sounds like you might be using a legacy version of DataTables (although without a test case, I can't say for sure).
row()
was introduced in v1.10.Allan