如何使用jQuery UI可拖动来选择遏制中的多个区域 [英] How to select multiple areas in containment using jQuery UI draggable

查看:203
本文介绍了如何使用jQuery UI可拖动来选择遏制中的多个区域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我想在使用jQuery UI可拖动的同时使用拖放操作来选择遏制中的multipe区域。我已经使用了 containment:[#area1,#area2,#area3] ,也制作了带有名称区域的单个类并应用于所有div,但仍未工作,甚至试过遏制:'#area1,#area2,#area3'但仍然无法正常工作。它仅取第一个容器。请提出建议

Hi i want to select multipe areas in containment using jQuery UI draggable while usinf drag and drop. I have used containment:["#area1","#area2","#area3"], also made single class with name area and applied to all divs but still not working, even tried containment: '#area1, #area2, #area3' but still not working. Its taking only the first container only. Please suggest

推荐答案

您可以使用如下的ui遏制选项:

you can use the ui containment options like following:

containment:'selector1, selector2,selector3...'

这篇关于如何使用jQuery UI可拖动来选择遏制中的多个区域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆