[jQuery] [autocomplete] here's mod for afterNoMatch option

2008-12-11 Thread justanyone
Below please find a mod for adding an option to AutoComplete. The option is 'afterNoMatch'. It specifies a function to call if the value provided does not match any value in the dropdown box. This may not be perfect, but it does get the job done. First, how to call it: var autocompleteJSON =

[jQuery] [autocomplete] NEW: Diff and example of afterNoMatch option

2008-12-11 Thread justanyone
y blogspot blog ('justanyone') at http://justanyone.blogspot.com . First, how to call it: var autocompleteJSON = function(raw) { var json = typeof(raw) === "array" ? raw : raw.resultSet; var parsed = []; for (var i=0; i <json.length; i++) { var row =json[i];