Problem with drag & drop

Problem with drag & drop

HI, sorry for english, i have a problem with drag & drop ,i can put a draggable element in a droppable and with this code

  1. jQuery('#att1').droppable({'drop':function( event, ui ) {$(this).html("");$( "<p></p>" ).text( ui.draggable.text() ).appendTo( this );},'out':function( event, ui ) {$(this).html("casella1")},'revert':'true'});

I have some fields droppable  and some elements draggable if i insert a draggable in a droppable the name of draggable appear on the droppable but if i go on a  droppable elements already  with a draggable and go out i have the function out but an element is inside.....

Also I want  only one element in a droppable , but i want revert and a magnet effect positioning  the draggable in the center of the droppable.

Tanks