TypeError: table.fnGetNodes is not a function

TypeError: table.fnGetNodes is not a function

selbatselbat Posts: 2Questions: 2Answers: 0

I am trying to run the example here:
http://live.datatables.net/aweven/2/edit

but there is an error
TypeError: table.fnGetNodes is not a function

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,789Questions: 1Answers: 10,511 Site admin
    Answer ✓

    Hi,

    The issue here is that the legacy fnGetNodes method is not available when you use the $().DataTable() constructor.

    Since you are using $().DataTable() I would suggest you use the modern API - rows().nodes() in this case.

    Alternatively, if you do need the legacy API, $().dataTable() can be used.

    Allan

This discussion has been closed.