jQuery AutoComplete Trigger Change Event

后端 未结 13 1056
陌清茗
陌清茗 2020-11-27 15:50

How do you trigger jQuery UI\'s AutoComplete change event handler programmatically?

Hookup

$(\"#CompanyList\").autocomplete({ 
    s         


        
13条回答
  •  一整个雨季
    2020-11-27 16:46

    This post is pretty old, but for thoses who got here in 2016. None of the example here worked for me. Using keyup instead of autocompletechange did the job. Using jquery-ui 10.4

    $("#CompanyList").on("keyup", function (event, ui) {
        console.log($(this).val());
    });
    

    Hope this help!

提交回复
热议问题