Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 81990

Logical OR and First letter

$
0
0

Hello everyone,
First of all, thank for datatable, it's awesome !
I would like to use search by first letter and searching by first letter.
What I already did is that :
$( 'input', this.footer() ).on( 'keyup change clear', function () {
if ( that.search() !== this.value ) {
that
.search('\b'+this.value, true, false )
.draw();
}
} );

which allow me to search by first letter.
The problem is, if I want to use the logical OR (while adding |) the second item isn't searched by first letter.
I tried to split("|") and reconstruct my string in a loop and then search(string) but it doesn't work.
Do I do something wrong ?


Viewing all articles
Browse latest Browse all 81990

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>