Datatable - How to get Cell value inside tag.

Datatable - How to get Cell value inside tag.

RujRuj Posts: 1Questions: 1Answers: 0

I want to add a column values in a footer callback. that column values are like <td><a url="">$4,000</a></td>

Below function in footer callback trying to add value : <a url="">$4,000</a> not just 4000

// Total over all pages
total = api
.column(2)
.data()
.reduce(function (a, b) {
return intVal(a) + intVal(b);
}, 0);

Please help How do it get the column value inside <a> tag and add it.

Answers

This discussion has been closed.