Sum Input field
Sum Input field
kevintivoli
Posts: 18Questions: 4Answers: 0
I have an input field defined like this and i need sum of this column.
{
data: "fields.quantity",
mRender: function ( data, type, row ) {
return '<input type="number" class="bg-gradient-info" id="qtybtn" min="0" max="100" step="1" value = '+ data +' >';
}
},
Tried this but it does not seem to work.
var qty_sum = table.column( 3 ).node().find('input').val().sum();
This discussion has been closed.
Answers
See Colin's example from this thread. It uses
cells().render()
.Kevin