Iam trying to implement multiple column search. The below code searches for text in both the columns
Iam trying to implement multiple column search. The below code searches for text in both the columns
sugendar91@gmail.com
Posts: 1Questions: 1Answers: 0
table.columns(1).search($(this).val()).draw();
table.columns(2).search($(this).val()).draw();
it filters text matching in both columns(AND condition).. Iam looking to filter rows that matches either of the columns.
Answers
Yes, using
column().search()
across multiple columns is an AND search. You will need to create a Search Plugin to perform OR searching. Something like this example:http://live.datatables.net/hocoyuke/4/edit
Kevin