I made this code. $(function() { $( "#xcontainer" ).sortable({ cursor: 'pointer', revert: true }); $("div" ).disableSelection(); }); Code (markup): The problem is that i also wish to do something like document.getElementBy("msg").innerHTML = " Updated " if the user wish to drag an element.
Can you try this $(function() { $( "#xcontainer" ).sortable({ cursor: 'pointer', revert: true, stop: function() { alert('stopped');} }); $("div" ).disableSelection(); }); Code (markup):