I'm making a document list, and I need to stop a draggable element being accepted by its parent. The option is set like:
$( ".onedoc" ).droppable({
accept: ".onedoc"
});
but I want the droppable not to accept its immediate children. The problem is since it's a nested list, the parents and children have the same classes, so I need to do something like
accept: $(".onedoc").not($(this).children())
but of course this doesn't work.