Datatable - How to get Cell value inside tag.
Datatable - How to get Cell value inside tag.

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
The intVal() function from the FooterCallback example strips
$
and,
from the dollar value. You will need to update that function to parse the string you have. If you need further help with this then please put together a simple test case with a sample of your data. This will allow use to see exactly what you have to offer suggestions.https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin