#txtAllowSearch がフラット html である限り機能する次のスクリプトがあります。
$(document).ready(function(){
$("#txtAllowSearch").autocomplete({
source: "test_array.aspx",
delay: 0,
select: function (event, ui) {
$("#txtAllowSearch").val(ui.item.value); // display the selected text
$("#txtAllowSearchID").val(ui.item.id); // save selected id to hidden input
}
});
});
#txtAllowSearch が javascript/jquery によって動的に作成されるとすぐに、これは機能しなくなります。
これを機能させるにはjqueriesをライブで使用する必要がありますか?