I'm using the jquery autocomplete plugin from pengoworks: http://www.pengoworks.com/workshop/jquery/autocomplete_docs.txt
In the function called upon an entry being selected, I want to find out the name (id) of the input element. (Because the callback is going to be used for multiple autocompletes.)
Code looks like this:
myCallback = function(o) {
// I want to refer to "myInput" here - but how?
}
setup = function() {
$('#myInput').autocomplete('blah.php', {onItemSelect: myCallback});
}