views:

26

answers:

1

i am using Jquery Drag and Drop

i have 3 divs

i want that gallery DIV should accept li from other two divs

i am using

$gallery.droppable({ accept: '#DIV1 li',

i cannot figureout how to put two DIV1 LI and DIV2 li in accept:

Thanks

+2  A: 

The accept option takes a selector so just use a comma-separated list.

$gallery.droppable( { accept: '#DIV1 li, #DIV2 li', ...
tvanfosson