Finding text node

前端 未结 8 1315
半阙折子戏
半阙折子戏 2021-01-03 08:14

Is there a clever jQuery selector for selecting a text node like this:

one two three
8条回答
  •  死守一世寂寞
    2021-01-03 08:39

    Check out this jQuery highlight plugin: http://tinyurl.com/6rk6ae

    It might not do exactly what you want, but the source contains good examples of working with text nodes and efficiently modifying the DOM around them.

提交回复
热议问题