1 # Autocomplete for Textarea
3 [![npm version](https://badge.fury.io/js/jquery-textcomplete.svg)](http://badge.fury.io/js/jquery-textcomplete)
4 [![Bower version](https://badge.fury.io/bo/jquery-textcomplete.svg)](http://badge.fury.io/bo/jquery-textcomplete)
5 [![Analytics](https://ga-beacon.appspot.com/UA-4932407-14/jquery-textcomplete/readme)](https://github.com/igrigorik/ga-beacon)
7 Introduces autocompleting power to textareas, like a GitHub comment form has.
9 ![Demo](http://yuku-t.com/jquery-textcomplete/media/images/demo.gif)
11 [Demo](http://yuku-t.com/jquery-textcomplete/).
16 $('textarea').textcomplete([{
17 match: /(^|\b)(\w{2,})$/,
18 search: function (term, callback) {
19 var words = ['google', 'facebook', 'github', 'microsoft', 'yahoo'];
20 callback($.map(words, function (word) {
21 return word.indexOf(term) === 0 ? word : null;
24 replace: function (word) {
32 - jQuery (>= 1.7.0) OR Zepto (>= 1.0)
36 See [doc](https://github.com/yuku-t/jquery-textcomplete/tree/master/doc) dir.
40 Licensed under the MIT License.
44 Patches and code improvements were contributed by:
46 https://github.com/yuku-t/jquery-textcomplete/graphs/contributors