here is my FIDDLE
I want to have more control over this part of the code:
$( api.column( 4 ).footer() ).html(
'$'+pageTotal +' ( $'+ total +' total)'
);
I would like to apply this on my #total
footer. It is currently being applied to the #search
footer, and is changing the value of the #search
footer in the top right of the table, when I want it to change the #total
footer in the bottom right.
this is with the html like this order:
<tfoot id="search">
<tr>
<th>First name</th>
<th>Last name</th>
<th>Position</th>
<th>Office</th>
<th>Salary</th>
</tr>
</tfoot>
<tfoot id="total">
<tr>
<th colspan="4" style="text-align:right">Total:</th>
<th></th>
</tr>
</tfoot>
I can swap the footers around above, FIDDLE here, and it will appear the way I want but the multi column filter search will break. Can I achieve what I am trying here without breaking anything?