JavaScript: Select data from column A where column B meets a criteria
JavaScript: Select data from column A where column B meets a criteria
![harmenzon](https://secure.gravatar.com/avatar/1b91b4d1bacd49e5812022fdf74455f3/?default=https%3A%2F%2Fvanillicon.com%2F1b91b4d1bacd49e5812022fdf74455f3_200.png&rating=g&size=120)
With JavaScript I would like to retrieve the data from a column where the data of another column meets a specified criteria. In the example below I am trying to retrieve the data of column A where column B us 'True'. Now I am still retrieving all the data of column A, like the search on column B is not being applied. Your help is much appreciated.
This discussion has been closed.
Answers
I think you will want to use the
filter()
API instead ofsearch()
. There are a couple examples in the doc which should get you started.Kevin
Thank you @kthorngren.
Can you please help out with the folowing example?
http://live.datatables.net/welavira/3/edit
I'm getting the filter right, but the returned data is only the data of column B and I also want the data of columns A and C.