You can do that with two nested .each()
loops. Here's an example:
$(document).ready(function(){
var sums = [];
$('tbody tr').each(function() {
var rowSum = 0;
$(this).find('.remaining-detail').each(function () {
rowSum += parseInt($(this).html().replace(',',''));
});
sums.push(rowSum);
});
$('#sum2').text("Biggest sum is in row " + (1 + sums.indexOf(Math.max.apply(Math, sums))));
});
Here's the jsFiddle. I'm storing the sums of each row and then printing the row with the highest sum, but you can do whatever variation you need. Hope it helps.