How to get max and min value of columns in data table using jQuery?

How to get max and min value of columns in data table using jQuery?

BelenDGBelenDG Posts: 2Questions: 0Answers: 0

Hello, I have a problem,
I have a table and I would like get max number of one column, but i don't know how to do.

I use this code for do the SUM
var table = $("#myTable").DataTable();

$("#myTable").on('search.dt', function() {

    $('#areaDate').html(table.column( 3, {page:'current'} ).data().sum());
    $('#energyIntensity').html(table.column( 8, {page:'current'} ).data().sum());

});

And now I want to do a MAX of this column.

Could someone help me?
Thanks.

Replies

This discussion has been closed.