How to get value of input which is in a cell of a selected row?
How to get value of input which is in a cell of a selected row?
agg9505
Posts: 11Questions: 5Answers: 0
I have this data table and I dont know how can I get the value of the input. can some one help me? with the next script I can get the data not the input.
var table = $('#tblInventory table').DataTable();
var text = '';
var test = [];
var quantity = [];
for (i = 0; i < table.rows('.selected').data().length; i++) {
test[i] = table.rows('.selected').data()[i].Id;
quantity[i] =??
}
or how to get the index of the selected row so I can do something like this
quantity[i] = table.cell(table.rows('.selected').index(), 3).nodes().to$().find('input').val();
This discussion has been closed.