$( "div:contains('hoge')" ).css( "color", "red" );
<body> <div>hoge</div> <div>moge</div> <div>hage</div> <div>unk</div> </body>