How to add multiple handles to a jQuery slider on the fly

后端 未结 1 912
野的像风
野的像风 2021-01-21 07:59

I want to do this :

  1. Add a handlle to a jQuery slider on some event
  2. That handle should have an id so that when it slides, I can access its value. Any ideas
相关标签:
1条回答
  • 2021-01-21 08:29

    I don't see any possibility according to the documentation on http://jqueryui.com/demos/slider/. You could destroy and recreate the slider when a value is added or removed. This requires you to store all current values of existing handles. Not a super elegant solution but it's the only one I currently see besides updating the jquery ui library.

    I updated your fiddle with a simple example: http://jsfiddle.net/FPCRb/4/

    0 讨论(0)
提交回复
热议问题