I'd like to get a list of data from one column in my data set but of only from the current rows
I'd like to get a list of data from one column in my data set but of only from the current rows
thegamechangerpro
Posts: 81Questions: 30Answers: 1
let emails= $('#table').DataTable().columns( 9 ).data().eq( 0 ).sort().unique().join( '<br>' );
This gets me ALL of the email addresses in my email column (from the dataset). I want to get ONLY what is currently being viewed (say if I searched something).
Please help!
This question has an accepted answers - jump to answer
Answers
With the
column()
API use theselector-modifier
of{page: 'current]}
or{search: 'applied'}
depending on what you want.Kevin