I need to create a 'slider' for a client's site. The slider should allow people to select how many items they want of x item, and show what the price will be based on that. The weird(ish) part is that the ratio of the price increase will go down as the amount of items goes up:
- 1 item: $100
- 2 items: +90 = $190
- 3 items: + 80 = $270
- 4 items: + 70 = $340
- 5 items: + 60 = $400
- 6 items: + 50 = $450
- 7 items: + 50 = $500
And all increases from then on are +50. This probably seems like an overly simplistic question, but does anyone know how I could go about doing this? I have almost no experience with JavaScript :(