0

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

html

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

JS

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

我觉得我和上面的没有任何关系......

4

1 回答 1

0

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

$("#searchTextField" ).autocomplete({
    change: function( event, ui ) {
        // The code you want after selection is made
    }
});
于 2013-03-10T20:14:36.133 回答