$(function() {
$( "#d1o1" ).droppable({
accept: "#s1o2, #s1o1, #s1o3, #s1o4, #s1o5, #s1o6",
over: function (){
$( "#d1o1" ).droppable( "option", "d1o1Check", "1" );
},
out: function () {
$( "#d1o1" ).droppable( "option", "d1o1Check", "0" );
},
})
});
At the moment the droppable #d1o1 accepts all the draggables because I would like them to stay put when dropped. However, I only want the 'over' and 'out' functions to run when #s102 is dropped. How is it possible to accept all draggables but only run over and out when a certain drag is dropped?
When ever a draggable is moved over droppable then you can check if it is eligible for the over and out function as:
Here is working jsFiddle