javascript/html autocomplete textbox

后端 未结 9 1430
我寻月下人不归
我寻月下人不归 2020-12-09 16:00

I am developing a web page which has a requirement of many autocomplete textboxes. As I am new to javascript, it is very tough for me to make my own autocomplete textbox. So

9条回答
  •  伪装坚强ぢ
    2020-12-09 16:20

    Use JQuery with the AutoSuggest plugin.

    http://docs.jquery.com/Plugins/autocomplete

    Include the JS libraries (see the documentation above), then do this in HTML:

    
    
    
    
    

    Then add an Autocomplete to the CSS-class in your Javascript:

    var data = "Core Selectors Attributes Traversing Manipulation CSS Events Effects Ajax Utilities".split(" ");
    $(".autocomplete").autocomplete(data);
    

提交回复
热议问题