문제

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