Is there any way I can append a div to the slider handle, so I can control the handle by dragging that div? Please see the picture attached.
Thank you.
Is there any way I can append a div to the slider handle, so I can control the handle by dragging that div? Please see the picture attached.
Thank you.
Copyright © 2021 Jogjafile Inc.
Yes, you can attach a
<div>
to the handle and use that<div>
to control the slider. The drag events work just as well on the handle's children as on the handle itself; so, you can just give the handle an appropriately absolutely positioned child, something like this:and some CSS:
Demo: http://jsfiddle.net/ambiguous/9B4MC/