(autocomplete) search() using formatResult? (rather than formatMatch or formatItem)
I'm using blur on my autocomplete field and calling the search() function explicitly (as is suggested in the code example for search()) to validate the user entry (when they click somewhere else on the page and the autocomplete field loses focus).
but this doesn't work for me because my formatResult function takes a user entry like "prefix suffix" and returns just "suffix" ("prefix" is put into another form element by my result() function). formatItem returns the full "prefix suffix" and that is what the user will see as matching their entry.
specifically, line 177 of jquery.autocomplete.js uses data[i].result inside the search function (rather than say data[i].value):
if( data[i].result.toLowerCase() == q.toLowerCase() ) {
what's the preferred way of doing this validation when formatResult is not the same as formatItem?