0
如果内部文本包含特定单词并将其颜色更改为红色,我想检查tinymce textarea如果是这样。如果tinymce包含特定单词,请检查jquery
$(".show_words").click(function(){
$("#content tinymce.get('textarea_id').getContent():contains('word')").css("color","red");
});
不幸的是,没有任何反应。如何正确写入此订单?由于
编辑: HTML:
<div id="content">
<input type="button" value="show words" class="show_words"/><br/>
<textarea name="drug_description" id="textarea_id" cols="50" rows="15"></textarea>
</div>
JavaScript代码应该超出字符串 – Alexander
什么时候你会检查这个?当点击“显示字词”时? – luchosrock
显示您要定位的html – karthikr