$('div:contains("test")').css('background-color', 'red');