$('#example').dataTable()._('td:nth-child(4)')
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
$('#example').dataTable( {
"fnFooterCallback": function ( nRow, aaData, iStart, iEnd, aiDisplay ) {
var iTotalCases = 0;
for ( var i=0 ; i<aaData.length ; i++ )
{
iTotalCases += aaData[i][1]*1;
}
/* Calculate the market share for browsers on this page */
var iPageCases = 0;
for ( var i=iStart ; i<iEnd ; i++ )
{
iPageCases += aaData[ aiDisplay[i] ][2]*1;
}
/* Modify the footer row to match what we want */
var nCells = nRow.getElementsByTagName('th');
nCells[1].innerHTML = parseInt(iPageCases * 100)/100 +
'';
}
} );
} );
</script>
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
$('#example').dataTable();
console.log( $('#example').dataTable()._('td:nth-child(2)') )
} );
</script>
It looks like you're new here. If you want to get involved, click one of these buttons!
Get useful and friendly help straight from the source.