I'm using IndexOf and $.grep in jquery to search a list of values. I need a case insensitive search, but I am getting case sensitivity. I've found similar solutions here on StackOverflow, but hey did not meet my needs. For example none of the solutions found at this link solved my problem: javascript indexOf to ignore Case
Here is the code:
var searchValue = "abc";
var matches = $.grep(listView.dataSource.view(), function (e) { return e.CategoryName.indexOf(searchValue) >= 0; });