DEPRECATED: use yuku/textcomplete
Latest commit 384fd60 Aug 29, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist Version 1.8.4 Aug 29, 2017
doc Version 1.7.0 Aug 29, 2016
src On IE: Correct alignment of jquery-textcomplete-dropdown when scrolli… Aug 29, 2017
.gitattributes Add .gitattributes Mar 20, 2016
.gitignore Update bower.json and .gitigrore Sep 21, 2014
CHANGELOG.md Version 1.8.4 Aug 29, 2017
Gruntfile.js CKEditor Adapter - Include in Gruntfile May 27, 2016
LICENSE Add LICENSE Aug 31, 2014
README.md No longer maintained May 13, 2017
bower.json Version 1.8.4 Aug 29, 2017
package.json Version 1.8.4 Aug 29, 2017

README.md

jquery-textcomplete is no longer maintained. Please use yuku-t/textcomplete instead.

Autocomplete for Textarea

npm version Bower version Analytics

Introduces autocompleting power to textareas, like a GitHub comment form has.

Demo

Demo.

Synopsis

$('textarea').textcomplete([{
    match: /(^|\b)(\w{2,})$/,
    search: function (term, callback) {
        var words = ['google', 'facebook', 'github', 'microsoft', 'yahoo'];
        callback($.map(words, function (word) {
            return word.indexOf(term) === 0 ? word : null;
        }));
    },
    replace: function (word) {
        return word + ' ';
    }
}]);

Dependencies

  • jQuery (>= 1.7.0) OR Zepto (>= 1.0)

Documents

See doc dir.

License

Licensed under the MIT License.

Contributors

Patches and code improvements were contributed by:

https://github.com/yuku-t/jquery-textcomplete/graphs/contributors