I would like the contents of searchStrings to refer to a list on sharepoint. Is there anyway to do that?

     document.getElementById('spe').addEventListener('keyup', function() {
      var kitten = document.getElementById('spe').value;
      kitten = kitten.toLowerCase();
      var searchStrings = ['qwe', 'americredit', 'bay view', 'nationwide 
     'the moss ', 'kurt gei', 'haier', 'objekts'];
      for (var i = 0; i < searchStrings.length; i++) {
        if (kitten.search(searchStrings[i]) !== -1) {
          alert('potential watchlist');

  document.getElementById('spe').value = kitten;
   }, false);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.