I am trying to get a droppable area to accept multiple divs but it will only accept the most recently declared. I'm having trouble finding out how to go about this problem.
Here is the code:
$(".square").draggable({helper: 'clone'});
$(".rect").draggable({helper: 'clone'});
$("#canvas").droppable({
accept: ".square",
accept: ".rect",
drop: function(ev,ui){
$(ui.draggable).clone.appendTo(this);