Get Cell Values

Get Cell Values

polarimanpolariman Posts: 6Questions: 2Answers: 0
edited November 2014 in Free community support

Just upgraded to 1.10. How do you get a cell value on row click? Let's say the cell I want is column 5.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,389Questions: 1Answers: 10,449 Site admin
    Answer ✓

    Use cell().data():

    $('#myTable').on( 'click', 'tr', function () {
      var cellData = table.cell( this, 5 ).data();
    } );
    

    Allan

  • polarimanpolariman Posts: 6Questions: 2Answers: 0

    Perfect. Thanks Allan.

This discussion has been closed.