Yes, there is a selector called “: contains” which selects the elements that contains the specified text. Here is the syntax: $(":contains(text)") Let's consider the following example which contains a set of div elements contains text. John Resig
George Martin
Malcom John Sinclair
J. Ohn The following statement filters all the elements contains text "John" and underlines them.