<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='http://code.jquery.com/jquery-1.6.2.js'></script>
<script type='text/javascript'>
$(window).load(function(){
$('div:contains("test")').css('background-color', 'red');
});
</script>
</head>
<body>
<div>This is a test</div>
<div>Another Div</div>
</body>
</html>