table.row(id).data(); return undefined

table.row(id).data(); return undefined

severinedevseverinedev Posts: 1Questions: 1Answers: 0
edited July 22 in Free community support

In each of my rows, I have an ID like this:
<tr id="row-1">...</tr>
When I try to search for this data with:
table.row('row-'+id).data() //id = 1
I get the result in the console: undefined

And when I search the table:
table.rows().nodes()
to see if I have rows, I get this:
{0: tr#row-1,context: ...}
Which means it exists, but the table.row('#row-'+id).data() function doesn't find it.

Answers

Sign In or Register to comment.