table.column(9, {selected: true}).data().sum()
$('#example tbody').on('click', 'tr', function () {
var price = parseInt(($(this).find('td').last().html()).replace(/\$|,/g, ''));
if($(this).hasClass('selected')) {
sum -= price;
} else {
sum += price;
}
$('.sum').html(sum);
$(this).toggleClass('selected');
} );