Finds all tds with children, including text. : Selector table « jQuery « JavaScript Tutorial






<html>
  <head>
    <script type="text/javascript" src="js/jquery-1.3.2.js"></script>
    <script type="text/javascript">
        $(document).ready(function(){
               
            $("td:parent").fadeTo(1500, 0.3);
        });
    </script>

  </head>
  <body>
    <body>
       <table border="1">
        <tr><td>Value 1</td><td></td></tr>
    
        <tr><td>Value 2</td><td></td></tr>
       </table>

    </body>
</html>








30.10.Selector table
30.10.1.Finds TD #1 and higher
30.10.2.Finds all table row containing "F"
30.10.3.Finds even table rows
30.10.4.Finds TDs less than the one with the second index
30.10.5.Finds all tds with children, including text.
30.10.6.Finds the last table row.