How to get text in a cell while iterator through rows
How to get text in a cell while iterator through rows
![noob_dt](https://secure.gravatar.com/avatar/8b6985f220e744ab60cb62ff0580bb71/?default=https%3A%2F%2Fvanillicon.com%2F8b6985f220e744ab60cb62ff0580bb71_200.png&rating=g&size=120)
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.
This discussion has been closed.
Answers
Got the answer:
alert(this.cell(index, 1).data());