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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -