getting data using cell().data() not working for thead and tfoot
getting data using cell().data() not working for thead and tfoot
pike
Posts: 3Questions: 1Answers: 0
Hi all,
I'm trying to get data from a specific cell in my tfoot. However, trying to get it using cell().data() and an id-selector does only work for the tbody. See http://live.datatables.net/riwutife/1/edit for an example.
In my example, how could I get data from cell with id='foot'?
Cheers
Seb.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Hi,
The
cell()
androw()
methods only work on the cells and rows in thetbody
. If you want the text from a footer cell, then you could use just a little bit of jQuery:$('#tiger').text()
.I'll update the documentation to clarify this - thanks for pointing it out.
Allan