Valores da linha da soma em JQuery Datatable

Plain text
1
2
3
4
5
` <script src="https://cdn.datatables.net/plug-ins/1.10.19/api/sum().js"></script>`
    $(document).ready(function() {
      var sum = $('#example2').DataTable().column(4).data().sum();
      $('#total').html(sum);
    });
Shy Salmon