Help with a js/jquery calculator

10/25/2015 12:40 rasmusfisk#1
Currently i have a calculator that calculate on bronze - silver - gold - platinum - diamond but i need to to calculate on 1-2-3-4-5 aswell! How can i do that? Fx. bronze - silver now it says 10€ but it should be 50€ becuase it need to add 10€ for each number you select in the number section (5 is lowers and 1 is highest).

Any1 that can help me with this?
Code: [Only registered and activated users can see links. Click Here To Register...]

Have worked on it for 2 days now and i just can't breake it... It's frustrate meh :( Hope som1 can give me the answere
10/25/2015 15:19 sven12345#2
You could check for start and end division -> if they're not the same you can iterate from the selected value until 1 e.g. if you select bronze 4 you need 4 divisions to pay ->for(var i =0; i<= 4;i++) ... add 10€ ... thats not really much but maybe it helps you, otherways just write me a pn
10/25/2015 16:08 rasmusfisk#3
Quote:
Originally Posted by sven12345 View Post
You could check for start and end division -> if they're not the same you can iterate from the selected value until 1 e.g. if you select bronze 4 you need 4 divisions to pay ->for(var i =0; i<= 4;i++) ... add 10€ ... thats not really much but maybe it helps you, otherways just write me a pn
Wrote you a message