問題描述
我使用了一個原型插件,可以在您鍵入時過濾下拉列表的內容.因此,例如,如果您在文本框中鍵入cat",則只有包含子字符串cat"的項目才會作為選項留在下拉列表中.
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.
有誰知道可以做到這一點的 jquery 插件嗎?
Does anyone know of a jquery plugin which can do this?
推薦答案
我寫了 一個小腳本來做這是幾年前的.很可能,它可以很容易地打包為一個 jQuery 插件.不客氣.
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.
如果您想查看我的 PHP 函數參考 儀表板小部件,我也會這樣做那里的代碼.
I also do this in my PHP Function Reference Dashboard widget if you want to look at the code there.
這篇關于Jquery:在您鍵入時過濾下拉列表的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!