Table.row() is not a function
Table.row() is not a function
hawkmaster
Posts: 56Questions: 20Answers: 0
Hello
I am a beginner to datatables.
I think it is a simple solution :-)
I want to highlight a row programmatically with the rowIndex.
So I found the example
http://datatables.net/reference/type/row-selector
var table = $('#example').DataTable();
var data = table.row( 0 ).data();
But If I put this inside my code I always get the error "Type error table.row() is not a function
What is the problem?
thanks a lot
hans
This discussion has been closed.
Answers
I suspect you are using
$().dataTable()
rather than$().DataTable()
- see the FAQs.Allan
Dear Allan
thanks for help.
I read the API reference and tried both. Like in the Example with
var table = $('#example').DataTable();
and with d, like
var table = $('#example').dataTable();
but always "table.row() is not a function
Hans
Can you link me to the page so I can debug it please. Without being able to see the code I'm guessing at best.
Allan