Skip to content

Instantly share code, notes, and snippets.

@bruckner
bruckner / jQuery.textFilter.js
Created November 9, 2011 20:16
A simple jQuery text filter box
/* textFilter - a simple module for a text input filter.
* Author -- Daniel Bruckner 2011
*
* To use:
* 1. Include this file on your page, probably at the bottom.
* 2. Add the class "textFilter-input" to any text input tag you would like to
* act as a filter.
* 3. Add the class "textFilter-target" to any DOM element to be hidden if it
* does not match the filter text.
* 4. Add the class "textFilter-match" to the DOM element (contained by a