javascript - how can i get value from tfoot datatable jquery? -
plz want value of first tr in tfoot can't , here how set values :
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { // init datatables var otable = $('#datatable').datatable({ "fnfootercallback": function( nrow, aadata, istart, iend, aidisplay ) { var solde = 20.35; nrow.getelementsbytagname('th')[4].innerhtml = solde.tofixed(2)+" $"; } }); }); </script>
how value ?? in advance.
try using eq() function
$('tfoot').find('tr').eq(0).html()
Comments
Post a Comment