Skip to content

jquery extension for live filtering elements on a page based on a text input

Notifications You must be signed in to change notification settings

Brwinded/liveFilter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

liveFilter

jquery extension for live filtering elements on a page based on a text input

Here is a jsFiddle demo: http://jsfiddle.net/y4rc5aoo/

The extension is used by selecting an input element, calling the extension function, and passing both a parent and child selector (and optional callback once filtering was complete).

$("#inputElement").liveFilter("parentSelector","childSelector",function(){});

The parentSelector is expected to be a jQuery acceptable selector which will represent the set of elements that will be hidden.

The "childSelector" is expected to be a jQuery acceptable selector which will represent the set of elements inside of the "parentSelector" whose text will be examined with regards to the search terms.

Prefacing any search term with ! will give results excluding those words.

The search terms will be partially matched, so alf will be found in alfonzo.

About

jquery extension for live filtering elements on a page based on a text input

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%