Answers for "autocomplete get target"

0

autocomplete get target

$('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'));
    }
});
Posted by: Guest on April-30-2021

Browse Popular Code Answers by Language