How do I get the value of mData in Data Tables for a specific cell using the Data Tables API?

How do I get the value of mData in Data Tables for a specific cell using the Data Tables API?

KananKanan Posts: 2Questions: 0Answers: 0
edited November 2013 in General
I am initialising a Data Tables table with preset JSON data. I use mData to match the cell values to the columns. I want to get mData in Data tables for a specific cell when I click on any cell. Is there a way to get the mData value using the Data Tables API?

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    As in you want the value from the cell when you click that cell? Or you want to know what mData's own value is? For the former, use fnGetData . For the latter, there isn't a public API for that - its an internal parameter once set in the initialisation.

    Allan
  • KananKanan Posts: 2Questions: 0Answers: 0
    Thanks Allan,

    I hacked around it by setting the sClass value to match the mData value and then got that value by using standard JQuery :)

    K
This discussion has been closed.