0

Basically, I want to have the gray box of each slice-accordian div change when the slider is moved with a corresponding .text() that acts like a popover but within the gray box with Min/Max values corresponding to set information that gets updated (i.e. move up and this is where you are at and this is the information for this value of the slider). A bonus is if the handle of the slider can change color to correspond to the value range (i.e. Max=Red, Default=Green, Min=Red).

4

1 回答 1

0

尝试尽可能接近地重新创建您的示例(阅读:不更改任何其他可以清理的代码)。

我整理了一个例子,做我认为你需要做的事情。

您的范围因不同颜色的阈值而关闭,它们没有相互覆盖的最小和最大范围。

对于灰色框中文本的更新,这是一个在 DOM 中查找与正在交互的滑块相关的简单案例,例如

$(this).parent().siblings('.feelings-box').html('blah')

于 2013-01-14T14:13:06.530 回答