Get number input value from cell in a selected row

Get number input value from cell in a selected row

BrowndogBrowndog Posts: 1Questions: 1Answers: 0

I'm using datatables to list a bunch of selectable rows to pass that data to a form via jQuery.

I'm currently using "table.rows( { selected: true } ).data()" to get the selected rows data, which works, with the exception of getting the data from the number input in one of the columns.

If I get the value from the column, it just returns the HTML from that cell, not the actual value. Additionally when the number input changed, that doesn't reflect in the HTML value as that's stored in the DOM and I can't access it that way.

The number input is basically a quantity field, and I want to pass what rows are selected and a quantity field to go with it.

Thanks in advance!

Answers

Sign In or Register to comment.