jeroenjoosen jeroenjoosen -4 years ago 162
Javascript Question

Set more than one containment in jQuery Draggable

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.

So is there a way you can set more then one class in the containment option of the jQuery draggeble?


Answer Source

set the ui containment options like following:

containment:'selector_1, selector_2,...'
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download