Get new jQuery plugins just once a week

×

text-complete

FavoriteLoadingAdd to favorites

September 16, 2013

text-complete | jQuery plugin for autocomplete in textarea

text-autocomplete is a jQuery plugin that introduces autocompleting power to textareas, like GitHub comment forms have.
It supports regular expressions and remote JSON.The HTML generated by jquery-textcomplete is compatible with Bootstrap’s dropdown. So all Bootstrap oriented css files are available.

Here is a simple example :

$('textarea').textcomplete({

mention: {
match: /(^|s)@(w*)$/,
search: function (term, callback) {
$.getJSON('/search', { q: term })
.done(function (resp) { callback(resp); })
.fail(function () { callback([]); });
},
replace: function (value) {
return '$1@' + value + ' ';
},
cache: true
}
});

Created by Yuku TAKAHASHI

Download

Example

text-complete jquery plugin

autocomplete in textarea

text-complete

Related posts:

Power PWchecker
Fancyselect
uniBox
text-complete jquery plugin

http://jquer.in/wp-content/uploads/2013/09/text-complete.jpg

jQuery plugin

Sign up for our weekly newsletter.

* We won't spam you ever