is there a way to directly select all \'inner\' table cells (
You can use :not() with the :first-child and :last-child selectors, like this To exclude first/last rows as well: elements) of a table (i.e. all cells except the ones in the first and last
$('table td:not(:first-child, :last-child)')
$('table tr:not(:first-child, :last-child) td:not(:first-child, :last-child)')