I am using a jQuery dataTable and when the user selects a drop down it searches the data table and filters it and redraws the contents based upon the searched data :
mtTable.columns().each(function() {
mtTable.column(22).search(searchVal, true, true).draw();
});
Now I am trying to get all of the column values after a search is done, however I cannot find a function to do this. Currently I am using from the api
var myTable = $("#tblResults").DataTable();
var resultsArray = myTable.columns(colIndex).data();
According to the documentation this will return all of the data from within the column unfiltered. I cannot find a function to give me an array of the column values for the filtered data only.