自动完成输入选择的触发功能

时间:2013-03-10 20:08:43

标签: jquery

我有一个自动填充地址的输入字段,我想要一个地址选择来触发一个功能。

HTML

Address: <input id="searchTextField" type="text" autocomplete="on" runat="server" />

JS

$('input[searchTextField]').bind('autocompleteSelect', function() {
  // some code...
});

我觉得我不能与上述任何人接近......

1 个答案:

答案 0 :(得分:0)

我认为你正在尝试这样做。

$("#searchTextField" ).autocomplete({
    change: function( event, ui ) {
        // The code you want after selection is made
    }
});
相关问题