loop tr in ecommerce
xxxxxxxxxx
$('#dataTable tr').each(function (index, tr) {
allTotalSum += parseInt($(tr).find('#total').text().replace('$', ''));
})
loop tr and calculate all totals and put in allTotalSum
xxxxxxxxxx
// tr is the jquery object
$(tr).find('td').each (function (index, td) {
console.log(td)
});
// for each tr get each td
$('#tableContent tr').each(function(index, tr) {
$(tr).find('td').each (function (index, td) {
console.log(td)
});
});