Finding Elements That Contain Some Specific Text With JQuery
Posted by Weston Ganger
I wanted to search the DOM for a specific piece of text.
# Search all elements $(":contains('some text')"); # Search only p elements $("p:contains('some text')");
Good ol jQuery to the rescue!
Related External Links: