SO fiddle

Test Fiddle mainly for SO Questions

by Nick Craver

HTML

<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/overcast/jquery-ui.css">
<h2>name</h2>
<p>john</p>
<h2>address</h2>
<p>street 1</p>
<h3>email</h3>
<p>jong@site.com</p>

<h2>name</h2>
<p>john</p>
<h3>email</h3>
<p>jong@site.com</p>

JavaScript

$("h3:contains('email')").next().css('color', 'blue');
    
$("h3").filter(function() { return $.text([this]) == "email"; }).next().css('font-weight', 'bold');