Keeping Track of Rows

Keeping Track of Rows

skramskram Posts: 1Questions: 0Answers: 0
edited October 2010 in General
Hi, I want to be able to keep track of what data is in a row. Previously, before DataTables (wow this is awesome!), I gave each TR a ID and could update the class that way through the DOM/jQuery. Now, I can't. Any ideas? I tried appending my custom HTML row to the page and then fnDraw(); but that makes my row disappear.

Thanks...

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    You can still use jQuery selectors on DataTables rows. Just do something like this $('td.class', oTable.fnGetNodes())... fnGetNodes will get an array of the TR elements jQuery will blast through that with the selector.

    Allan
This discussion has been closed.