Highlighting search words like Chrome with jQuery

前端 未结 3 833
我在风中等你
我在风中等你 2020-12-19 12:52

I have recently done a very simple highlighting with jQuery and a highlight plugin. It looks like this:

$(\'myButton\').click(function() {

3条回答
  •  不思量自难忘°
    2020-12-19 13:00

    I've edited JAndy's code so the result would match all the occurences in the text and the search would not be case-sensitive. Link Hope someone finds this helpful

提交回复
热议问题