Good morning In my current project, I need to mark the subject's contacts and / or hashtags in the text, while typing For example, when typing '@' and the first few letters, javascript recognizes that it has to search for users, or by typing '#' with a word, javascript recognizes that it has to mark the word as a search link for it
The part of looking for the contacts is quiet for me, using Ajax or a preloaded list, what I'm not really getting is that javascript knows when to get the right word to mark
Can anyone help? Thank you in advance