Menu
Hi allo,
not sure why the draggable object flies away after dropping it and displaying the message “x”.
$( “#droppable01” ).droppable({
accept: “#draggable01”,
drop: function( event, ui ) {
$( this )
.addClass( “ui-state-highlight” )
.find( “p” )
.html( “That is correct!” );
document.getElementById(“demo”).innerHTML = “x”;
$(ui.draggable).detach().css({top: 0,left: 0}).appendTo(this);
$( “#draggable01” ).draggable( “disable” );
}
});
Thanks for your help.