How to get around capitalization when you run the script jQuery EasySearch?

Hello.
I use here such script for searching on the fly by site elements such as search by a specific li within the ul. - jQyery EasySearch

The problem is that it is case sensitive entered lines of letters in the input how to get around that?
June 14th 19 at 19:17
1 answer
June 14th 19 at 19:19
to go into the code to find the piece where there is a string comparison, cast the string to one case before testing. Judging by the code
if ( this.innerText.toLowerCase().indexOf( $this.val().toLowerCase() ) == -1 ) {
he cites both strings to lower case, it is strange that you have only works case-sensitive.
in js here is a connection:

$('input.ul_brands_search').jSearch({ 
 selector : 'ul.ul_brands',
 child : 'li',
 minValLength: 0,
 Found : function(elem, event){
$(elem).show();
},
 NotFound : function(elem, event){
$(elem).hide();
}
 });
- earlene commented on June 14th 19 at 19:22

Find more questions by tags jQuery