I am mostly a backend developer. And very new to javascript. So pardon my dumb question, but is there a way to trigger autocomplete when the user types '@' in a textfield. Like how it does in twitter.
Take a look at onkeyup if you are using straight javascript. If you are using jQuery, try keyup.
From there, you can check to see if the user entered '@' and then make your auto-complete .
Got two answers for you:
I think this blog post has what you need:
Triggered @mention Autocomplete like Facebook, Twitter and Google+
Github repo: https://github.com/Hawkers/triggeredAutocomplete
Also a similar question: Twitter-style autocomplete in textarea
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With