Radio click event, add value

Radio click event, add value

Hi,

The following code works, but I need to add an additional value to the
total amount. This value is the tax and is retrieved from the database.
Any help greatly appreciated. Thanks!

  1. $("input[type=radio]").click(function() {
                         var total = 0;
                         $("input[type=radio]:checked").each(function() {
                            total +=parseFloat($(this).val());   
                         });
                           $('#total, #total2, #total3').text(total.toFixed(2)).currency({ region: '€', thousands: '', decimal: ',', decimals: 2 });
                       });
                   });