Ajax autocomplete (or autosuggest) with TAB completion/autofill similar to shell command line completion?

后端 未结 3 1393
孤独总比滥情好
孤独总比滥情好 2021-02-01 10:39

I\'m implementing a AJAX autocomplete/autosuggest feature, and not only do I want to do the usual show suggestions that are similar to what the user typed, but I\'d like to let

3条回答
  •  礼貌的吻别
    2021-02-01 11:26

    The simplest way would be to just use the jQuery and the autocomplete plugin. Looking the the stackoverflow html, it seems that they are using the same stuff. Seems to work very well for most browsers. The plugin also has an extensive demo that should help you figure out how to implement it to your specific needs.

    Here's a quick sample from the plugin home page:

    
    
    
      
      
      
      
      
      
      
    
    
    
      API Reference:  (try "C" or "E")
    
    
    

    More to be found here http://docs.jquery.com/Plugins/Autocomplete

提交回复
热议问题