Using jQuery UI drag-and-drop: changing the dragged element on drop
Taking the full javascript code from the link you gave, you can change it as follows to make it work: $(function() { $(“.elementbar div”).draggable({ connectToSortable: ‘.column’, cursor: ‘move’, cursorAt: { top: 0, left: 0 }, helper: ‘clone’, revert: ‘invalid’ }); $(“.elementbar div, .elementbar div img”).disableSelection(); $(“.column”).sortable({ connectWith: ‘.column’, cursor: ‘move’, cursorAt: { top: 0, left: … Read more