Thursday, April 2, 2015

Filter a list with Highlight

For this user filtered I've used two tiny jQuery plugins to keep in mind.

The first is called "MyCaseInsensitiveContains" (by Eric Best. Found in stackoverflow.com) which does the same as jQuery built-in ":contains" but not case sensitive.

The second plugin ("highlight", by Bartek Szopka) allows to highlight texts, wrapping them in a span with ".highlight" CSS class.

Note: This post uses different techniques used in the post "Filter list by typed text".