Finds all table row containing "F" : Selector table « jQuery « JavaScript DHTML






Finds all table row containing "F"

  

<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>

   
    
  








Related examples in the same category

1.Finds TD #1 and higher
2.Finds even table rows
3.Finds TDs less than the one with the second index
4.Finds all tds with children, including text.
5.Finds the last table row.