Autocomplete - 'change' not firing beyond v1.8.0
Hi,
I would like to use JQuery 1.5 and JQuery-UI 1.8.9 to implement some autocomplete functionality (see code extract below) but I am unable to get the 'change' event to fire whenever an item is selected from the list. The 'change' event only seems to fire when the input field ( #member_search ) loses focus and not when I select an item from the list. If I use v1.8.0, the 'change' will fire when an item is selected. Is this behaviour correct or a bug?
$(function() {
$('#member_search').autocomplete({
source: $('#autocomplete_ajax_path').val(),
select: function(event, ui) { ...
},
change: function(event, ui) {
//prevent 'member_search' field being updated and correct position
$('#member_search').val('').css('top', 2);
}
});
});
Thanks!