Jquery: Filter dropdown list as you type

前端 未结 8 1830
粉色の甜心
粉色の甜心 2020-12-04 09:46

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 substri

8条回答
  •  醉话见心
    2020-12-04 09:49

    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.

提交回复
热议问题