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
Posts: 17Questions: 7Answers: 0
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.