How to create data array from table column 1 to 3?
How to create data array from table column 1 to 3?
layla0323
Posts: 2Questions: 2Answers: 0
I can create an array by using "table.rows().data().toArray();", but if I only want data from columns 1 to 3, not the whole table, how should I modify this code?
This discussion has been closed.
Answers
try to use a column selector:
https://datatables.net/reference/type/column-selector
You would use
rows().every()
to loop over the row, andcells().data()
inside it:Allan