如何更改包含特殊字符的文本区域中的字体颜色?

时间:2014-10-02 12:58:56

标签: javascript jquery

我有textarea,我想更改包含#(#标签)的某些文字的字体颜色 我想在输入#(hashtag)时使用jquery然后更改该单词的颜色

<textarea name="community" id="community" class="form-control" rows="5" placeholder="X happens">this s is test text #photography in this string word #photography should be in different color</textarea>

0 个答案:

没有答案