我如何通过jQuery更改textarea上的标签颜色 [英] How can i change hashtag color on textarea by jquery
本文介绍了我如何通过jQuery更改textarea上的标签颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想像这样在textarea上做哈希标签
i wanna make hash tag on textarea like this
<textarea> hi #hash </textarea>
并更改#hash像Twitter一样的颜色
and change color of #hash like twitter
推荐答案
我为此做了一个插件,因为我有同样的问题. 在这里查看: http://lookapanda.github.io/jquery-hashtags/
I made a plugin for this because I had the same problem. Look here: http://lookapanda.github.io/jquery-hashtags/
这篇关于我如何通过jQuery更改textarea上的标签颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文