SyntaxFix
Write A Post
Hire A Developer
Questions
You can use jQuery's filter() function to achieve this.
$("p").filter(function() { // Matches exact string return $(this).text() === "Hello World"; }).css("font-weight", "bold");