How to target specific letter/word with jquery?

后端 未结 3 684
执念已碎
执念已碎 2021-01-19 06:17

As a mere example, I want to apply the class \"fancy\" to all occurrences of the sign \"&\" in the document.

The C

3条回答
  •  迷失自我
    2021-01-19 06:58

    Regex is commonly used for this:

    http://chirale.wordpress.com/2009/07/04/character-substitution-on-jquery/

    http://forum.jquery.com/topic/how-to-select-specific-characters-and-replace-them

提交回复
热议问题