Oct
28
Do you know the autocomplete for usernames on twitter?
If you enter and @-sign into the textbox, a autocomplete will be shown.
I havn’t found an existing plugin for that, so I have written one. autocompleteTrigger is based on jQuery-UI Autocomplete and set/overwrite some functions only.
Url: https://github.com/experteer/autocompleteTrigger
Demo: http://jsfiddle.net/dmattes/2YRgW/1/
Code Example
$('input,textarea').autocompleteTrigger({
triggerStart : '@',
triggerEnd: '',
source: [
"Asp",
"BASIC",
"COBOL",
"ColdFusion",
"Erlang",
"Fortran",
"Groovy",
"Java",
"JavaScript",
"Lisp",
"Perl",
"PHP",
"Python",
"Ruby",
"Scala",
"Scheme"
]
});


no comment untill now