multi select - getting the row #'s of selected table rows
multi select - getting the row #'s of selected table rows

I can't seem to figure out how to grab the row # of the selected rows, I can:
xx = table.rows( {order:'index', search:'applied'} ).nodes();
which gives me an array of all 10 of the rows in the table, with the selected rows have the selected
text appended:
tr.[odd|even].selected
I can iterate the xx variable looking for the selected value and catch the incremental ID
But is there a way instead to return something like an array of just the selected row #'s?
I need the selected row #'s so that I can update a cell in the selected row/s with some new html. Just feeling like there is a cleaner way to access the selected row #'s via the API but I'm not seeing it. I'm in uncharted waters
TIA
This question has an accepted answers - jump to answer
Answers
"But is there a way instead to return something like an array of just the selected row #'s?"
https://datatables.net/reference/api/rows().indexes()
that's got it, thanks