you can try gcomplete uses the google api for autocomplete anything, with a little modification to the source code, you can change the behavior about the tag input[text]
.
i made changes for the plugin and autocomplete the last word, you can test in github.com/rkmax/gcomplete.
I'm working on:
- Autocomplete the current word.
- Determine the number of lines (visual) and Textarea the current cursor position to display the list of words right next to the cursor, thanks to SimpleCoder