質問

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