Using jQuery you can use:
$(":contains(hello)")
It will return any matching element containing the text "hello."
I want to be able to match any text, especially "hello :)".
$(":contains(hello :))")
$(":contains('hello :)')")
$(":contains('hello :\)')")
How to find elements containing "hello :)" using jQuery?
source
share