I wanted to use the open event to return “no results found” when ui == null but in firebug it looks like that even after the open event is fired the ui list is always empty even if there are results.
My source is an XML file
I’m attempting:
open: function(event,ui) {
if( ui.item == null ) {
console.log("no results");
}
}
Add to autocomplete.js:
to:
$.extend