How to sum all the values which I enter manually inside textbox using datatable
How to sum all the values which I enter manually inside textbox using datatable

Hello.
I have created datatable and one entire column has textbox, where user will input their value.
render: function (data, type, row) {
return '<input class="form-control" id="itemId" name="itemId" maxlength="350" multiline="true" type="text" >';
How can I sum all those textbox?
This discussion has been closed.
Answers
This example shows how to sum the numeric data in a column, by using
column().data()
to get the values. For aninput
element, you would usecell().node()
instead to get the node, then useval()
to get its value.Colin