SyntaxFix
Write A Post
Hire A Developer
Questions
The .first() will help here
$('p:contains("hello")').first().css('font-weight', 'bold');