javascript/html autocomplete textbox

后端 未结 9 1424
我寻月下人不归
我寻月下人不归 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:28

    I recommend to check this:

    http://complete-ly.appspot.com/

    The simple case should meet your requirements:

    var cly = completely(document.getElementById('a-div-wrapping-your-autocomplete-box');
    cly.options = [ 'your','array','of','options','(possibly sorted somehow)'];
    

提交回复
热议问题