Calculating number values with radio button values
-
Hi guys:
This little bit code is what’s keeping me from completing a large project where users can have their songs mastered at a varying range of prices. 1-3 for $75 each; 4-6 for $65 each; 7-12 for $55 each. I’ve been able to successfully create an equation and it is working perfectly:
(function(){
if(fieldname10 <= 3) return fieldname10*75;
if(fieldname10 >= 4 && fieldname10 <= 6) return fieldname10*65;
if(fieldname10 >= 7 && fieldname10 <= 12) return fieldname10*55;
})();The hiccup is that there are also “extras” a user can choose with your order represented as radio buttons. I’ve seen the jquery examples at how to recognize a selected radio button but I have no idea how to make this work – mainly, grab the price associated with the radio buttons ($25) and pass it as equation: radio button + total = Grand Total. Can someone please lend some assistance.? Thank you so much.
- The topic ‘Calculating number values with radio button values’ is closed to new replies.