Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Twitter-style autocomplete in textarea

I am looking for a Javascript autocomplete implementation which includes the following:

  • Can be used in a HTML textarea
  • Allows for typing regular text without invoking autocomplete
  • Detects the @ character and starts autocomplete when it is typed
  • Loads list of options through AJAX

I believe that this is similar to what Twitter is doing when tagging in a tweet, but I can't find a nice, reusable implementation.
A solution with jQuery would be perfect.

Thanks.

like image 480
Martin Wiboe Avatar asked May 27 '11 21:05

Martin Wiboe


1 Answers

Another great library which solves this problem At.js (deprecated)

Source

Demo

They are now suggesting the Tribute library

https://github.com/zurb/tribute

Example

like image 87
Jernej Novak Avatar answered Sep 30 '22 19:09

Jernej Novak