Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 1
    Thanks for the answer! I tried your example, but the search didn't work as expected. If nothing was in the search box, nothing shows up. If I enter anything in it, all the things show up Commented Feb 21, 2016 at 19:28
  • 1
    @Horay Well, did not refine the search algorithm due to this portion of original post: "I want it to search very loosely, i.e. it shouldn't be case sensitive, it shouldn't take spaces into account, etc." . Not certain if search was for first letter or any part of items in array? You can remove the part where no results shown be removing if that checks for search term value .length . You should be able to modify both the search criteria and results shown from template Commented Feb 21, 2016 at 19:44