I\'m wondering how one can catch and add a custom handler when empty results are returned from the server when using jQueryUI autocomplete.
There seem to be a few questio
It is easy to handle with response option
response
$( 'input.Srch' ).autocomplete({ minLength: 3, ....... response: function(event, ui) { if (!ui.content.length) { var noResult = { value:"",label:"No results found" }; ui.content.push(noResult); } } });
Here is my screenshot: