Im wesentlichen der gleiche Algorithmus, nur einen Hauch jQuery-esker:
~~~javascript $(document).ready(function(){
var cells = $("#t td:nth-child(2)").toArray().reverse(),
rowspan = 1;
$.each(cells, function () {
var currentCell = $(this)
if ( ! currentCell.text() ) {
currentCell.remove()
rowspan++
} else if (rowspan > 1) {
currentCell.attr("rowspan", rowspan)
rowspan = 1
}
})
});