How to auto apply drag and drop effect to dynamically added element?

前端 未结 3 797
Happy的楠姐
Happy的楠姐 2021-01-27 16:51

I use jquery ui to apply a drag and drop effect on a serial of DIVs, for example:

...
.
3条回答
  •  南笙
    南笙 (楼主)
    2021-01-27 17:29

    Have a look at the jQuery .live(). I believe you could use it here. If not - just attach .draggable() when you create your element.

提交回复
热议问题