Home  >  Q&A  >  body text

javascript - How to configure autocomplete ajax, please give me advice

How to configure autocomplete ajax, please advise

ringa_leeringa_lee2686 days ago1043

reply all(1)I'll reply

  • 大家讲道理

    大家讲道理2017-07-05 11:09:03

    var options = {
        serviceUrl: "",
        type: "",
        dataType: "",
        deferRequestBy: "",
        minChars: ,
        width: "",
        onSearchStart: function(query) {},
        onSearchError: function() {},
        transformResult: function(response) {},
        onSelect: function(suggestion) {},
        onSearchComplete: function() {}
    };
    
    $("#id").autocomplete(options);

    For specific parameters, please see https://github.com/lonelyplan...

    reply
    0
  • Cancelreply