Multicolumn search with "OR" column
Multicolumn search with "OR" column
tfe2012
Posts: 1Questions: 1Answers: 0
I want search by multiple column
for example:
Head: id1 id2 id3 id4
row 1: 1 2 3 4
row 2: u5 u6 u7 u8
Then search phrase is "u"
result is : row2
Then search phrase is "5"
result is empty
var that = this.api().columns([0, 1]);
$( '#that' ).on( 'keyup change', function () {
if ( that.search() !== this.value ) {
that
.search(this.value, true, false)
.draw();
}
} );
This discussion has been closed.