jQuery: find element by text
<div>This is a test</div>
<div><span>Another Div</span></div>
$('div:contains("Another")').css('background-color', 'red');
<div>This is a test</div>
<div><span>Another Div</span></div>
$('div:contains("Another")').css('background-color', 'red');