How to apply if satement and calculate in JavaScript
问题 How can I apply the if statement and calculate a set of radio buttons using JavaScript? It works as of now with adding up the total. but I would like it to apply the $150.00 off only when they select yes. Here is the radio buttons that I am trying to work with. <p>Baby Plan<br /> [radio BPSUBPT id:BPSUBPT class:radio-vertical "Baby Plan $300.00 3 Sessions" "Baby Plan $500.00 4 Sessions"] </p> <p>Did you have a Newborn session With ADP? <br /> [radio BPSUPQ id:BPSUPQ class:radio-vertical "Yes