我已设置了draggable的snap元素,如下所示:
$('#id_num_'+id_num).draggable({snap:'.time_column', snapMode:'inner'})
如何设置我的可拖动元素以捕捉到两个不同的元素或类......就像这样:
$('#id_num_'+id_num).draggable({snap:'.time_column', '.**other class**', snapMode:'inner'})
答案 0 :(得分:11)
怎么样
$('#id_num_'+id_num).draggable({snap:'.time_column,.other_class', snapMode:'inner'})