views:

58

answers:

1

cont from here: http://stackoverflow.com/questions/1444469/jquery-droppable-accept

$(".droppable").droppable({
    accept: function(d) { 
        if(d.hasClass("foo")||(d.attr("id")=="bar")){ 
            return true;
        }
    }
});

what if i wasn't targeting an element but a set of elements? like "ul#moo li" for example. how would i change the IF condition???

A: 

apparently this works

$(".droppable").droppable({
    accept: ('ul#moo_A li', 'ul#moo_B li'),
    }
});
meilas