The plugins site is currently in development.
We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.
jQuery Simple Filter
SimpleFilter simply filters a list of strings by some input. Really not much to it: attach a simpleFilter to a text input (or anything with a value that can have a 'keyup' event triggered on it) and provide the source for the data. This plug-in will match results in the data and display them in a list directly below the input. Clicking on an option in the list inserts that content into the input and hides the list (there are also keyboard controls).
Note that this plug-in requires the Quicksilver jQuery Port!
Basic usage:
<input type='text' id='someInput' />
$('#someInput').simpleFilter({
data: ['one', 'two', ...], // Array REQUIRED
maxListEntries: 20,
caseSensitive: true
});
If you want to know when a selection is made, bind to "input.simpleFilter" on the the input tag:
$('#someInput').bind('input.simpleFilter', function(jQEvent, text) {
if (typeof(text) != 'undefined') {
// handle it
}
// NOTE: this binding will also capture regular 'input' events,
// you will want to check the text argument. If it is undefined,
// then you do NOT process the event as a simpleFilter selection
});See web site for list of all options and examples.
