Drag and drop multiple selected draggables and revert invalid ones using Jquery UI
Drawing a box with cursor (lasso) will select multiple .item in this JSFiddle example . Selected .item 's become draggable. Empty .slot without an .item inside is a valid droppable. When you drop multiple draggables on multiple droppables, only the .item which mouse is on will revert if its corresponding droppable not valid. How to make every draggable revert if it's dropped on invalid droppable? Javascript: $(function () { // we are going to store the selected objects in here var selected = $([]), total = [], offset = { top: 0, left: 0 }; $(document).selectable({ filter: ".item", start: