jquery - Draggable and droppable position -
please on jsfiddle
the problem when drop element not position well. know problem because of left: 12px; in css cant figure out how solve.
$('.b').droppable({ drop:function(event, ui) { ui.draggable.detach().appendto($(this)); } }); $('.b').selectable(); $('.c').draggable({ helper:"clone", revert: 'invalid', opacity: 0.5, grid: [30,36], });
just use ui.draggable.detach().appendto($(this).prev())
instead
Comments
Post a Comment