I'm trying to set up autocomplete for a sentence (multiple words). Here's the jsfiddle which is partially working.
http://jsfiddle.net/willkriski/F27ZK/
I'd like the down arrow and tab (to select words) to work, then add a space as it does now after selecting a word, but to allow for multiple words. Right now it doesn't work for more than one word. I tried adjusting the jquery example but I'm a little lost with directives :)
Also if I could add words to the array if one isn't found (to build up a vocabulary of used words), triggered on the space bar that would be great too. Or possibly click an 'Add word' entry in the list to manually add the current word.
Thanks,
Will