I'm working on a restaurant online menu and need to show the total as customers add items to the menu. However, my total only updates with 1 decimal. I'm trying to use toFixed(2) but can't quite get it working.
var banquetPrice = parseInt($(document).find(".menuChoice").val());
$(".menuChoice").change(function () {
updateTotal()
});
var total = (banquetPrice * numGuests) + (9.25 * numGuac) + (9.25 * numQuesa) + (9.25 * numNachos)
$("#total").html(total);
total.toFixed(2);
Any help would be greatly appreciated!