How To Select the First Table Cell in the First Row Using CSS
table.myTable > tbody > tr:first-child > td:first-child
table.myTable > tbody > tr:first-child > td:first-child
1 |
jQuery('form :input:visible:enabled:first').focus(); |
Use the :first-child or :last-child CSS Selectors The :first-child pseudo class means “if this element is the first child of its parent”. :last-child means “if this element is the last child of its parent”. Note that only element nodes (HTML tags) count, these pseudo-classes ignore text nodes. Click here for the original article on Quirksmode