0
我有我的asp.net MVC Razor视图中下面的脚本: -自动完成选择不点火
$("#Technology2_Tag").autocomplete({
minLength: 1, delay: 1000,
source: function (request, response) {
$.ajax({
url: "@Url.Content("~/Switch/AutoComplete2")",
dataType: "json",
data: {
term: request.term,
SearchBy: $("#ChoiceTag").prop("checked") ? $("#ChoiceTag").val() : $("#ChoiceName").val(),
},
success: function (data) {
response(data);
},
select: function (event, ui)
{
//get the value user selected
alert('t');
//your code populate data to dropdownlist...
}
});
},
});
自动完成的是选择一个自动完成项目后运作良好,但选择不点火,例如,没有警报会显示?谁可以建议? 感谢