Set more than one containment in jQuery Draggable

前端 未结 2 668
小鲜肉
小鲜肉 2021-01-24 11:55

I\'m creating a management application with some element on the page. Those element can be dragged around. but in the page you have 2 seperate places where it could be dragged.

2条回答
  •  遥遥无期
    2021-01-24 12:29

    set the ui containment options like following:

    containment:'selector_1, selector_2,...'
    

提交回复
热议问题