Good video with one problem: The end part where divs are copied into the box and cannot be dragged after dropping is not due to the cancel option, but rather due to z-index of the elements. if you add a z-index to the smaller, colored div that is greater than the large box div, you will be able to drag them around again after dropping. There is also a stack option in the draggable call, that you can just add stack: ".divClass" , and jQuery will automatically ensure the dragged element stays in front of the other elements.
@ziaurrehman52062 жыл бұрын
hey venkat! love ur all videos and learned alot from you bro. the drag and drop functionality work perfect but the problem is how to persist the position of each element even if we refresh the page. Or how to save this as a template when set the dragging positions, i.e. saving the positions along with each element in database on Save Button Click and then get it back on Clicking Retrieve Button.