devbridge/jQuery-Autocomplete — pull request #7 by lmammino (2012-09-07 11:51:42+00:00)
Title: Allow to filter the selected value on the onSelect callback

Allows to return a string on the onSelect method that filters out the value that will be set on the input field.

E.g.

$('._autocomplete').autocomplete({
onSelect : function(value, data, input)
{
return 'Filtered value: ' + data.value;
}
});

If selecting _New York_ will set the input text value as _Filtered value: New York_