Introduces autocompleting power to textareas, like a GitHub comment form has.
Demo.
$('textarea').textcomplete([{match: /(^|\s)(\w{2,})$/,search: function(term,callback){varwords=['google','facebook','github','microsoft','yahoo'];callback($.map(words,function(word){returnword.indexOf(term)===0 ? word : null;}));},replace: function(word){returnword+' ';}}]);- jQuery (>= 1.7.0) OR Zepto (>= 1.0)
See doc dir.
Licensed under the MIT License.
Patches and code improvements were contributed by:
https://github.com/yuku-t/jquery-textcomplete/graphs/contributors
