diff --git a/auto-complete.js b/auto-complete.js index 2f5a88c..c07658f 100644 --- a/auto-complete.js +++ b/auto-complete.js @@ -126,6 +126,19 @@ var autoComplete = (function(){ else that.sc.style.display = 'none'; } + + // Optional method to trigger results programatically + that.triggerSC = function(data){ + + if (data.length) { + var s = ''; + for (var i=0;i