Click the link below to view the code. Currently, the issue I am facing is that the bottom three sets of checkboxes are not performing the correct calculations and do not update when they are unchecked.
$('input[name=food]').change(function(){
if($(this).is(':checked')){
gettotal();
}
else{
}
});
// This piece of code verifies whether the checkboxes with name "food" have been checked, identifies which one was checked, and then triggers the 'get total' function.