$("#Fund_Name_Search").autocomplete({
source:"<%=Url.Action("Action", "Controller") %>",
select: function(event, ui) {
// Do something with "ui.item.Id" or "ui.item.Name" or any of the other properties you selected to return from the action
$('#Fund_Id').val(ui.item.value.split('-')[0]);
},
minChars: 1,
max: 0,
delay: 500,
width: 160,
selectFirst: false
});
沒有留言:
張貼留言