我有一个使用自动完成填充的选择列表。但是,焦点输出会在选择自动完成之前被触发。
$('#licenceNumber').autocomplete({
select: function (event, ui) {
console.log(' I am SUPPOSED to get fired first ;(')
}
});
$('#licenceNumber').focusout(function () {
console.log(' I get fired first')
});
有关如何解决此问题的任何提示?
答案 0 :(得分:0)
你能试试吗?
$('#licenceNumber').autocomplete({
select: function (event, ui) {
console.log(' I am SUPPOSED to get fired first');
}
}).focusout(function () {
console.log(' I get fired first');
});