Table.row() is not a function
Table.row() is not a function
![hawkmaster](https://secure.gravatar.com/avatar/8d4f92943c0f7963daf5003c8de780a9/?default=https%3A%2F%2Fvanillicon.com%2F8d4f92943c0f7963daf5003c8de780a9_200.png&rating=g&size=120)
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