Jquery Draggable - How do I create a new draggable div on the fly that can then be dragged?

后端 未结 2 722
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-09 01:26

I\'m creating a day planner using jquery, draggable and droppable.

When a job is dragged from the unassigned column into a hour time slot, the original draggable item i

2条回答
  •  爱一瞬间的悲伤
    2021-02-09 01:46

    Rather than replacing the new div, why not disable the draggable?

    $(element).draggable('disable');
    

    Then when you want it to be draggable agian, use this

    $(element).draggable('enable');
    

提交回复
热议问题