I'm trying to get the "grand total" for 6 radio groups. All are populated by the database and the value column is Decimal with 2 decimal places eg 12.35
So I have set up 6 radio groups and 6 hidden fields to accept the values. It all works and the fields are getting the values but the total calc field (planTotal) is not showing to the total amount. What am I doing wrong? I need this for PayPal to work.
For each radio:
$(totalBusPlan) = funcRadioCalc($(busOpt_FieldID)) /*This works for each*/
The module javascript file:
$(totalBusPlan) = funcRadioCalc($(busOpt_FieldID))
$(totalVehPlan) = funcRadioCalc($(vehOpt_FieldID))
$(totalPropPlan) = funcRadioCalc($(propOpt_FieldID))
$(totalBusUp) = funcRadioCalc($(busUp_FieldID))
$(totalVehUp) = funcRadioCalc($(vehUp_FieldID))
$(totalPropUp) = funcRadioCalc($(propUp_FieldID))
$(planTotal) = (totalBusPlan) + (totalPropPlan) + (totalVehPlan) + (totalPropUp) + (totalBusUp) + (totalVehUp)
/*This Does not work*/
I've tried with ALL the code in each questions client side event, no luck. I've tried with:
$(planTotal) = parseFloat($(totalBusPlan)) + parseFloat($(totalPropPlan)) + parseFloat($(totalVehPlan)) + parseFloat($(totalPropUp)) + parseFloat($(totalBusUp)) + parseFloat($(totalVehUp))
/*No luck*/