HTML select tag autocomplete

后端 未结 3 1670
庸人自扰
庸人自扰 2021-01-19 03:52

I got some select tag as follows:


                        
    
提交评论

  • 2021-01-19 04:35

    I think this is the default action of drop down(select control). You have to do zero effort to achieve it.

    try this JSbin.. there is a select box and when user first presses g on the keyboard grapes is selected and on second ginger is selected

    http://jsbin.com/UYeZaPA/1/edit

    0 讨论(0)
  • 2021-01-19 04:39

    Well, If you want to add Auto Complete functionality to your html select element then there is nothing better than selectize.js

    All you need to do is either include its css and js file in your project or you can use cdns.

    Go to Selectize website here

    0 讨论(0)
  • 提交回复
    热议问题