Based on the previews experiments you will get a flat array with all selected elements.
d3.selectAll("tbody td");
Using a chained (nested) selection
d3.selectAll("tbody tr").selectAll("td");
we get matrix of cells
Now we are in full control and can manipulate eg. the color of specific cells and rows
var td = d3.selectAll("tbody tr").selectAll("td"); td.style("color", function(d, i, j) { return (j<2 && i<2) ? null : "red"; });