I'm using Scriptaculous to create a price range slider with two handles. Problem at the moment is the two handles can slide past each other. How can I make them stop if they reach the other handle

Thanks

有帮助吗?

解决方案

Try setting the restricted option to true:

Used only for multiple handles, when restricted is true, handle(s) with greater indexes are not allowed to have values less than handles with smaller indexes. When restricted is false, handles can be moved independently from others.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top