5
Good morning In my current project, I need to mark individual contacts and/or hashtags in the text, while the same type For example, when typing '@' and the first letters, javascript recognizes that it has to search for users, or when typing '#' with a word, javascript recognizes that it has to mark the word as a search link for it
The part of searching for contacts is quiet for me, using Ajax or a preloaded list, what I’m not getting even is that javascript knows when to pick the right word to mark
Can someone help us? Thanks in advance
are you using textarea or input? and how to know that the tag is over? are always single words?
– Sergio
You can also give an example of the result you want to have with links?
– Sergio
@Isaiaslima wrote the javascript implementation using jQuery and now updated this implementation to a jQuery plugin for better code reuse.
– Tuyoshi Vinicius
I’m using an editable div @Sergio
– Isaias Lima