Given this markup http://jsfiddle.net/ARPCw/
how can I update the total on change?
The problem is that I need the value (data-price) of the previous selected radio button, so I can subtract it to the total amount before to add the new one.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
example fiddle: http://jsfiddle.net/ARPCw/5/
relevant js