Get Datatable Row Index
Get Datatable Row Index

How can I get datatable row index using id attribute?
I tried using
$("#dataTable").fnGetPosition( document.getElementById("tr_16") )
$("#myTable").fnGetPosition( $("#tr_16") )
but it says fnGetPosition is not a function.
what I want to get is the actual datatable row index, not just index of shown data
This discussion has been closed.
Answers
example: I have 3 pagination. each contains 10 rows with overall total of 34 rows.
last index is equal to 33. (starts with 0 index)
I wanted to get the index 22 based on its tr id attribute. <tr id="tr_22">
need help.
Looks like you can use
row().id()
. You can use any appropriaterow-selector
to pass into therow()
API.Kevin