Autocomplete Without jQuery UI

后端 未结 8 1259
野性不改
野性不改 2021-02-04 01:52

I\'m using jQuery in my project and I need to implement autocomplete, but I\'d like to avoid including jQuery UI widget, and hopefully use some specific external plugin. Could y

8条回答
  •  眼角桃花
    2021-02-04 02:15

    You can use HTML5 'list' attribute in your input textbox and provide it a custom list of values by using datalist.

    
    
    
    
    
    
    
    
    
    
    
    
    

    If you didn't get it, Read more at http://www.cheezycode.com/2015/09/create-auto-complete-dropdown-using.html

    There's a video as well for it Auto-Complete Without JQuery

提交回复
热议问题