Hi,
It seems than I cannot find how to use the table.columns([0, 1, 2, 3]).search().draw()
method properly...
When I tried it, it doesn't gave me the result I expected...
My simplified JS code look like this:
var table = $('#list').DataTable();
$("#list_filter input").on('keyup click', function() {
table.columns([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]).search($(this).val()).draw();
});
$("#number_search").on('keyup click', function() {
table.column(10).search($(this).val()).draw();
});
All the searchable
are true
and columns 9 and 10 are .hidden (display: none !important;)
.
My purpose here is to use the "usual" search field to search in the 10 1st column and the last one with an extra text field...
Does this search method searches on column 0 AND column 1 AND column 2 AND ... in spite of what I am expecting with OR ??
Thanks for any help!