如何搜索单个字母并突出显示所有这些实例

时间:2014-09-11 08:03:55

标签: javascript jquery html regex

我想知道如何找到已经写在文本框中并突出显示/重新着色的段落中的所有单个字母。

<textarea id="Input" cols="50" rows="5">
    Insert text to be modified here
</textarea>
$("#singles").click(function() {
    $(function() {
        var foundin = $('*:contains("")');
    });

这是我尝试过但我不知道的事情

  • 如何为此语句返回true /如何让它执行 之后的代码
  • 什么用作空格,&nbsp;*&nbsp;看起来像 虽然它会起作用:/

0 个答案:

没有答案