-
Notifications
You must be signed in to change notification settings - Fork 114
Open
Description
I have problem with onselect event which is not firing:
$('.search-autocomplete').autoComplete({
minChars: 1,
source: function(search, response) {
$.ajax({
type: 'POST',
dataType: 'json',
url: global.ajax,
data: 'action=search_site&search='+search,
success: function(res) {
var users = [];
$.each(res.data, function(i, obj) {
users.push(obj.name);
});
response(users);
},
onSelect: function(e, term, item){
alert("selected!");
}
});
}
});
Metadata
Metadata
Assignees
Labels
No labels