jQuery quicksearch plug-in
A jQuery based plug-in for filtering large data sets with user input
This is an improved fork of the original work of riklomas https://github.com/riklomas/quicksearch.
This plugin is now maintained by @DeuxHuitHuit
Note that the usage has changed in the latest version of quicksearch, the code is not backwards compatible,
the form and input are not build by the script any more.
Example on table rows
/* Example form */
/* Example table */
Another test cell
Example on the
<th> elements on a table row
Example of how to use with JS
Example of how to use with Ajax
Delay of trigger in milliseconds
A query selector on sibling elements to test
An array of class names to go on each row
A query selector to find a loading element
Maintain original case of searchable content when comparing to query, instead of converting to lowercase. Defaults to false.
A query selector to show if there's no results for the search
Event that the trigger is tied to. Defaults to 'keyup search'
Event that the reset event is tied to. Defaults to 'reset'
Remove diacritics from the search input. Defaults to false.
Establish a minimum length that the search value must have in order to perform the search. Defaults to 0.
Function to call before trigger is called
Function to call after trigger is called
Function to call when the value does not exceeds the
Function to call when no results are found. The normal behavior (show the no result panel) is canceled when you specify this parameter. You get the quicksearch instance in parameter so you can manually call the no result behavior.
Function that will add styles to matched elements
Function that will add styles to unmatched elements
Function that transforms text from input_selector into query used by 'testQuery' function
Function that tells if a given item should be hidden
It takes 3 arguments:
- query prepared by 'prepareQuery'
- stripped text from 'selector'
- element to be potentially hidden
Functions are always
apply'd, so except
this to be the plugin object.
Help make quicksearch better!
If you have a bug fix, the best way to help would be to:
- Fork the project by clicking "Fork this project" at the top of this page
- Clone your version of quicksearch from your Github account to your computer
- Checkout the
- Fix and commit the bugs, then push your version to your Github account
- Click "pull request" at the top of my Github page
- Please create the "Pull Request" to push in the
I can't promise to answer every question about quicksearch,
but please do report bugs here.
Now licensed under the MIT License: http://deuxhuithuit.mit-license.org
jQuery quicksearch was made by Rik Lomas at Lomalogue.
It is now maintain by Deux Huit Huit
Thanks to Seth F. for fixes and Krzysiek Goj for the testQuery and prepareQuery option updates