2 Replies Latest reply on Jul 31, 2013 10:02 AM by charles2359

    Check Boxes and Script Calculations

    charles2359

      Greetings!

       

      I have a form with fields that need to be added and being new to Javascript I am having a tough time getting the exact script I need.

       

      I have a form that has 2 checkboxes and a total field. When the checkboxes are checked, I would like the total field to add the values of the checkboxes. When unchecked I would like to them to have values of 0. When checked I would like them to have the following values.

       

      Checkbox 1 = $50

      Checkbox 2 = $10

       

      Total field = sum of checkbox 1 (if selected) and checkbox 2(if selected)

       

      Will someone please help me with this?

       

      Thanks,

       

      Chuck