Using jQuery to highlight a character of a string on a webpage

前端 未结 4 1892
眼角桃花
眼角桃花 2021-01-27 05:35

I want to use jQuery to highlight a character of a string on a webpage at an index of some value. The value is variable – one time it will be at the index of 2, and the ne

4条回答
  •  独厮守ぢ
    2021-01-27 06:05

    Use below highlight() and pass index and text.

    
    
    

提交回复
热议问题