Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including jquery-textcomplete with all npm packages installed. Try it out:

var jqueryTextcomplete = require("jquery-textcomplete")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

jquery-textcomplete v1.8.4

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.




    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 + ' ';


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


See doc dir.


Licensed under the MIT License.


Patches and code improvements were contributed by:

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free