使用jquery将所有可拖动项目移动到一起

时间:2012-05-13 08:31:32

标签: jquery jquery-ui

我有9个DIV,我可以拖动它们全部。现在我想让它们在拖动其中一个时以相同的模式移动(就像我拖动它们一样)

    $(".draggable").draggable({
    drag: function(event,ui){

    //i don't know what to write here, as i don't know what event and ui are.
// an .each will solve the problem if i get to know what these 2 arguments are

    }

    });

1 个答案:

答案 0 :(得分:1)

如果您想拖动多个div而不是所有容器,可以查看here

相关问题