why can I use the API?
why can I use the API?
longer3436
Posts: 2Questions: 1Answers: 0
first I get a instance of datatable:
var myTable = $('#datatable').dataTable();
but when I use the API like this:
myTable.row.add(el).draw( false );
I got the exception:Unable to get property 'add' of undefined or null reference
what happend ?
This discussion has been closed.
Answers
I should use var myTable = $('#datatable').DataTable();
but .dataTable() also effected, so ....... holy shit
See the top FAQ and also the API section of the manual.
Allan