views:

7347

answers:

5

I have used a prototype plugin which filters the contents of a dropdown as you type. So for example if you typed 'cat' into the text box, only items containing the substring 'cat' would be left as options in the drop down.

Does anyone know of a jquery plugin which can do this?

+6  A: 

jQuery autocomplete plugin

EDIT: I initially linked to the wrong autocomplete plugin.

karim79
This plugin was last updated over a year ago (Jan 2008); that's a little long in i-net time.
BryanH
It does the job perfectly across all browsers as far as I can tell - and I've got it in production. Now you've got me a little worried...
karim79
Does it filter lists or does it only create lists based on the input?
Andrew Hedges
@Andrew, yes it can, you just need to define its behaviour in the options you pass to it.
karim79
+10  A: 

Check these plugins:

CMS
+3  A: 

I wrote a little script to do this a few years ago. It could be packaged up as a jQuery plug-in quite easily, probably. You're welcome to it.

I also do this in my PHP Function Reference Dashboard widget if you want to look at the code there.

Andrew Hedges
This is exactly what I was after. Would you mind if someone packaged this as a JQuery plugin and distributed it? I'm thinking of releasing some plugins next month and this would make a good one.
Go for it. Maybe link back to the original page in the source, if that's alright?
Andrew Hedges
Yeah sure, if it ever gets released! I've been sitting on a load of code that I keep meaning to release as JQuery / prototype plugins fsince the beginning of the year.
Was this ever packaged up?
Kohan
A: 

Try the "jquery options filter", based on real select box and matching in the mid of option texts: http://plugins.jquery.com/project/jquery_options_filter

for diyism

diyism
A: 

I was just looking for something similar, and the best one for what I need seems to be the JQuery UI MultiSelect. It turns Multi-select boxes into a pretty slick dual-list view, with live filtering on the master list.

Ed Brannin