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