Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery search and filter table

I was looking for a jQuery plugin that'll filter a table according to input values.

I came across http://rikrikrik.com/jquery/quicksearch/, but I can't figure out how to make it work for an already existing input box.

Currently it creates a new input form for me (which I don't want) but I'd like to be able to use it with an existing input box that has a input submit button.

like image 683
AlteredConcept Avatar asked May 07 '09 02:05

AlteredConcept


2 Answers

It looks like time has answered your question for you. QuickSearch does in fact allow you to attach the search function to a preexisting text input box.

riklomas mentions that:

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.

I've just started using it today and it looks like it works pretty well. It does appear to eat up it's share of CPU, at least on my testing environment (Firefox 3.6, OS X, and a pretty large data set), but that's probably not unique to this particular plugin.

like image 107
Craig Walker Avatar answered Oct 06 '22 01:10

Craig Walker


This is not possible with this plug-in out-of-the-box, unless you dig into its code and modify it to do this.

The search inputbox is automatically generated by its own javascript and there are no options to change that behavior.

like image 35
ichiban Avatar answered Oct 06 '22 00:10

ichiban