How to get text in a cell while iterator through rows

How to get text in a cell while iterator through rows

noob_dtnoob_dt Posts: 9Questions: 3Answers: 0
edited February 2021 in Free community support

Could you please advise how I can get text value of a specified inner cell (td) in datatable while iterator thorugh rows.

I tried something like this but doesn't work:

myTable.iterator('row', function (context, index) {

    alert($(this.row(index).columns(2)).data());
    alert(this.row(index).columns[2].data());

});

Thank you in advanced.

Answers

  • noob_dtnoob_dt Posts: 9Questions: 3Answers: 0

    Got the answer:

    alert(this.cell(index, 1).data());

This discussion has been closed.