Contains(text) matches elements which contain the given text.
<html> <head> <script type="text/javascript" src="js/jquery-1.3.2.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("tr:contains('F')").css("background-color", "#bbbbff"); }); </script> </head> <body> <body> <table> <tr><td>First</td></tr> <tr><td>Middle</td></tr> <tr><td>Last</td></tr> </table> </body> </html>