开发者

Split value into percentage with a slider

开发者 https://www.devze.com 2023-02-27 09:35 出处:网络
im new to jQuery and searching a way for doing smthing like this: I have a value [100] and 5 categorys [apple, banana, kiwi, lemon, orange]

im new to jQuery and searching a way for doing smthing like this:

I have a value [100] and 5 categorys [apple, banana, kiwi, lemon, orange]

What I want is to have for each category a slide开发者_如何学Pythonr (a line with a point on it you can move)

So every category starts with a value of 20 (100 / 5).

When there is more banana than apple and you "slide" banana to the value of 40 the other values should decrase so I've still the full percentage of 100%.

Anyone knows a plugin or has a handy snippet?

Thx in advance!


Take a look at this:

http://jqueryui.it/demos/slider

0

精彩评论

暂无评论...
验证码 换一张
取 消