autocomplete_extender テキストボックスが必要です。以下のようなコードを書きました。
//For autocomplete extender
$(function () {
$('.tags').autocomplete({
source: function (request, response) {
$.ajax({
url: "GoalSheet2.aspx/GetAllMentoredMembers",
data: "{ 'prefixText': '" + request.term + "' }",
dataType: "json",
type: "POST",
contentType: "application/json; charset=utf-8",
success: function (data) {
response(data.d);
self.LoadGoal();
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
alert('error occured while autocomplete');
}
});
},
minlength: 2,
});
});
しかし、ここでは jquery オートコンプリートを使用しています。ノックアウトでそれを行う方法はありますか?そして、1つの値を選択した後、その値を取得したいと思います。