Sakshi Sharma Sakshi Sharma - 5 months ago 44
jQuery Question

Triggered @mention Autocomplete like Facebook, Twitter and Google+

I have been trying to make something like Facebook @tagged Friend name add in text area. I have been using jquery ui auto-complete to do the job , it's working fine except that I want some symbol such as @ or ~ to start the tag, I can't figure it out how. Anyone has ideas ? I'm using it for multiple tag of friends just like Facebook.

Answer

I wrote a plugin to accomplish this:

http://www.hawkee.com/snippet/9391/


$('#inputbox').triggeredAutocomplete({
    hidden: '#hidden_inputbox',
    source: "/search.php",
    trigger: "@" 
});