IonDen / ion.rangeSlider

jQuery only range slider
http://ionden.com/a/plugins/ion.rangeSlider/en.html
MIT License
2.55k stars 506 forks source link

How to calculate units according to selected number #666

Open jrlorenzo opened 4 years ago

jrlorenzo commented 4 years ago

Hi @IonDen ,

I'm trying to calculate units according to selected number in the rangeslider. Lets say I want 2000 bottles of water (so I select 2000 in range slider) but the bottles comes in 6-pack units. So I would need to buy 334 packs. Probably you already had done this or something similar. Would you please create a fiddle to see it in action?

Thank you,

IonDen commented 4 years ago

Hi, @jrlorenzo, like this? https://jsfiddle.net/IonDen/fjk7ews2/