getting data using cell().data() not working for thead and tfoot

getting data using cell().data() not working for thead and tfoot

pikepike 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

Answers

  • allanallan Posts: 61,985Questions: 1Answers: 10,162 Site admin
    Answer ✓

    Hi,

    The cell() and row() methods only work on the cells and rows in the tbody. 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

This discussion has been closed.