📅  最后修改于: 2022-03-11 14:55:33.034000             🧑  作者: Mango
$('input[type=text]').autocomplete({
source: 'suggestions.php',
select: function(event, ui) {
// here I need the input element that have triggered the event
alert($(this).attr('name'));
}
});